예제 #1
0
 /// <summary>
 /// Hides the Progress from the specified control.
 /// </summary>
 /// <remarks>For backwards compatibility. Use Progress.Hide(IView) if possible.</remarks>
 public static void HideFromControl(Control control, bool finishProgress = true)
 {
     MainFormManager.GetMainForm <WindowsForms.MainForm>().RemoveProgressFromControl(control, finishProgress);
 }
예제 #2
0
 /// <summary>
 /// Shows an existing progress on the specified control.
 /// </summary>
 /// <remarks>For backwards compatibility. Use Progress.Show(IView, ...) if possible.</remarks>
 public static IProgress ShowOnControl(Control control, IProgress progress)
 {
     MainFormManager.GetMainForm <WindowsForms.MainForm>().AddProgressToControl(control, progress);
     return(progress);
 }
예제 #3
0
 /// <summary>
 /// Hides the Progress from all Views of the specified content.
 /// </summary>
 public static void Hide(IContent content, bool finishProgress = true)
 {
     MainFormManager.GetMainForm <WindowsForms.MainForm>().RemoveProgressFromContent(content, finishProgress);
 }
예제 #4
0
 /// <summary>
 /// Shows an existing progress on all Views of the specified content.
 /// </summary>
 public static IProgress Show(IContent content, IProgress progress, bool addToObjectGraphObjects = true)
 {
     MainFormManager.GetMainForm <WindowsForms.MainForm>().AddProgressToContent(content, progress, addToObjectGraphObjects);
     return(progress);
 }