private void SetMode(bool IsBeginLoad) { if (IsBeginLoad == true) { this.BeginInvoke((MethodInvoker) delegate { frmLoad = new frmCshLoading(); frmLoad.ShowDialog(); }); } else { this.BeginInvoke((MethodInvoker) delegate { frmLoad.CloseForm(); }); } }
private void SetMode(bool IsBeginLoad) { try { if (IsBeginLoad == true) { this.BeginInvoke((MethodInvoker) delegate { _frmLoad = new frmCshLoading(); _frmLoad.ShowDialog(); }); } else { this.BeginInvoke((MethodInvoker) delegate { _frmLoad.CloseForm(); }); } } catch (Exception) { } }
private void SetMode(bool IsBeginLoad) { if (IsBeginLoad == true) { this.BeginInvoke((MethodInvoker) delegate { frmLoad = new frmCshLoading(); frmLoad.ShowDialog(); }); } else { this.BeginInvoke((MethodInvoker) delegate { frmLoad.CloseForm(); }); } //SetControlPropertyThreadSafe((Control)toolStrip1, "Enabled", !IsBeginLoad); //SetControlPropertyThreadSafe((Control)grdGrid, "Enabled", !IsBeginLoad); //SetControlPropertyThreadSafe((Control)groupControl1, "Enabled", !IsBeginLoad); //SetControlPropertyThreadSafe((Control)groupBox1, "Enabled", !IsBeginLoad); //SetControlPropertyThreadSafe((Control)groupBox2, "Enabled", !IsBeginLoad); }