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 { } }
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 { } }
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 { } }
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 { } }