Пример #1
0
 public void send(Button obj, bool _temp)
 {
     try
     {
         if (obj.InvokeRequired)
         {
             SetTextCallbackButton d = new SetTextCallbackButton(send);
             Program.Form.Invoke(d, new object[] { obj, _temp });
         }
         else
         {
             obj.Enabled = _temp;
         }
     }
     catch { }
 }
Пример #2
0
 public void send(ProgressBar obj, bool _temp, int _temp2, int _temp3, int _temp4)
 {
     try
     {
         if (obj.InvokeRequired)
         {
             SetTextCallbackButton d = new SetTextCallbackButton(send);
             Program.Form.Invoke(d, new object[] { obj, _temp, _temp2, _temp3, _temp4 });
         }
         else
         {
             obj.Visible = _temp;
             obj.Minimum = _temp2;
             obj.Value   = _temp3;
             obj.Maximum = _temp4;
         }
     }
     catch { }
 }
Пример #3
0
 public void send(ProgressBar obj, bool _temp, int _temp2, int _temp3, int _temp4)
 {
     try
     {
         if (obj.InvokeRequired)
         {
             SetTextCallbackButton d = new SetTextCallbackButton(send);
             Program.Form.Invoke(d, new object[] { obj, _temp, _temp2, _temp3, _temp4 });
         }
         else
         {
             obj.Visible = _temp;
             obj.Minimum = _temp2;
             obj.Value = _temp3;
             obj.Maximum = _temp4;
         }
     }
     catch { }
 }
Пример #4
0
 public void send(Button obj, bool _temp, bool _temp2)
 {
     try
     {
         if (obj.InvokeRequired)
         {
             SetTextCallbackButton d = new SetTextCallbackButton(send);
             Program.Form.Invoke(d, new object[] { obj, _temp, _temp2 });
         }
         else
         {
             obj.Visible = _temp2;
             obj.Enabled = _temp;
         }
     }
     catch { }
 }
Пример #5
0
 public void send(ProgressBar obj, bool _temp)
 {
     try
     {
         if (obj.InvokeRequired)
         {
             SetTextCallbackButton d = new SetTextCallbackButton(send);
             Program.Form.Invoke(d, new object[] { obj, _temp });
         }
         else
         {
             obj.Visible = _temp;
         }
     }
     catch { }
 }