Ejemplo n.º 1
0
 public static void ProgressingComplete(string key)
 {
     lock (_keys)
     {
         if (_keys.Contains(key)) _keys.Remove(key);
         if ((_form != null) && (_keys.Count == 0))
         {
             _form.Close();
             _form = null;
         }
     }
 }
Ejemplo n.º 2
0
 public static string ProgressingStarted(string text, bool topMost, int timeout)
 {
     var key = Guid.NewGuid().ToString();
     lock (_keys)
     {
         _keys.Add(key);
         if (_form == null)
         {
             _form = new RunningProcesses();
             _form.Update(text, topMost, timeout);
             _form.Show();
             System.Windows.Forms.Application.DoEvents();
         }
     }
     return key;
 }