Exemplo n.º 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(); });
     }
 }
Exemplo n.º 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)
     {
     }
 }
Exemplo n.º 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);
        }