/// <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); }
/// <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); }
/// <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); }
/// <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); }