本文整理汇总了C#中IProgressIndicator.Stop方法的典型用法代码示例。如果您正苦于以下问题:C# IProgressIndicator.Stop方法的具体用法?C# IProgressIndicator.Stop怎么用?C# IProgressIndicator.Stop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IProgressIndicator
的用法示例。
在下文中一共展示了IProgressIndicator.Stop方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deobfuscate
private FileSystemPath Deobfuscate(IObfuscatedFile obfuscatedFile, IProgressIndicator progressIndicator)
{
try
{
progressIndicator.Start(5);
progressIndicator.TaskName = "Deobfuscating...";
progressIndicator.CurrentItemText = string.Format("Saving to {0}", obfuscatedFile.NewFilename);
progressIndicator.Advance(1);
obfuscatedFile.deobfuscateBegin();
progressIndicator.Advance(1);
obfuscatedFile.deobfuscate();
progressIndicator.Advance(1);
obfuscatedFile.deobfuscateEnd();
// turn all flags on
RenamerFlags flags = RenamerFlags.DontCreateNewParamDefs | RenamerFlags.DontRenameDelegateFields |
RenamerFlags.RenameEvents |
RenamerFlags.RenameFields | RenamerFlags.RenameGenericParams |
RenamerFlags.RenameMethodArgs |
RenamerFlags.RenameMethods | RenamerFlags.RenameNamespaces |
RenamerFlags.RenameProperties |
RenamerFlags.RenameTypes | RenamerFlags.RestoreEvents |
RenamerFlags.RestoreEventsFromNames |
RenamerFlags.RestoreProperties | RenamerFlags.RestorePropertiesFromNames;
var renamer = new Renamer(obfuscatedFile.DeobfuscatorContext, new[] { obfuscatedFile }, flags);
progressIndicator.Advance(1);
renamer.rename();
progressIndicator.Advance(1);
obfuscatedFile.save();
}
finally
{
progressIndicator.Stop();
}
return new FileSystemPath(obfuscatedFile.NewFilename);
}
示例2: RecoverAfterExternalChanges
public bool RecoverAfterExternalChanges(IProgressIndicator progressIndicator)
{
progressIndicator.Start(1);
progressIndicator.Stop();
return true;
}
示例3: Initialize
public bool Initialize(IProgressIndicator pi)
{
pi.Start(1);
pi.Stop();
return true;
}
示例4: RefreshContents
public bool RefreshContents(IProgressIndicator pi)
{
pi.Start(1);
pi.Stop();
return true;
}
示例5: CheckInternalState
///<summary>
///
/// Request to check all internal structures to make sure everything is fine after user edited text
///
///</summary>
///
public bool CheckInternalState(IProgressIndicator progressIndicator)
{
progressIndicator.Start(1);
progressIndicator.Stop();
return true;
}