Ejemplo n.º 1
0
 public static void LoadPluginCallback(string plugin, int index, int count)
 {
     if (Instance == null)
     {
         return;
     }
     while (!Instance.IsHandleCreated)
     {
         Thread.Sleep(100);
     }
     Instance.Invoke((Action)(() =>
     {
         Instance.labCurWork.Text = Texts.Get("s_loading$plugin", "plugin", plugin);
         Instance.progressBar1.Value = (int)(20 + (index * 60.0 / count));
         //Application.DoEvents();
     }));
 }