Пример #1
0
 private void SetMode(bool IsBeginLoad)
 {
     if (IsBeginLoad == true)
     {
         this.BeginInvoke((MethodInvoker) delegate { frmLoad = new frmCshLoading(); frmLoad.ShowDialog(); });
     }
     else
     {
         this.BeginInvoke((MethodInvoker) delegate { frmLoad.CloseForm(); });
     }
 }
Пример #2
0
 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)
     {
     }
 }
Пример #3
0
        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);
        }