public static void SetProgressState(Form form, TaskbarProgressBarStatus state)
 {
     form.InvokeSafe(() => SetProgressState(form.Handle, state));
 }
 public static void SetProgressValue(Form form, int currentValue, int maximumValue = 100)
 {
     form.InvokeSafe(() => SetProgressValue(form.Handle, currentValue, maximumValue));
 }
Пример #3
0
 private static void SafeWindowClose(Form form)
 {
     if (form != null)
     {
         form.InvokeSafe(() =>
         {
             if (!form.IsDisposed)
             {
                 form.Close();
             }
         });
     };
 }