Ejemplo n.º 1
0
        protected void ShowProcessForm(string msg, bool isShowCancelButton)
        {
            if (!this.InvokeRequired)
            {
                if (_processForm == null || _processForm.IsDisposed)
                {
                }
                else
                {
                    _processForm.Dispose();
                }

                _processForm = new Form_ProcessingEx();
                _processForm.StartPosition      = FormStartPosition.CenterParent;
                _processForm.IsShowCancelButton = isShowCancelButton;
                _processForm.ProcessText        = msg;
                _processForm.ShowDialog(this);
            }
            else
            {
                ShowProcessFormDele cs = new ShowProcessFormDele(ShowProcessForm);
                this.Invoke(cs, new object[] { msg, isShowCancelButton });
            }
        }
Ejemplo n.º 2
0
        protected void ShowProcessForm(string msg, bool isShowCancelButton)
        {
            if (!this.InvokeRequired)
            {
                if (_processForm == null || _processForm.IsDisposed)
                {

                }
                else
                {
                    _processForm.Dispose();
                }

                _processForm = new Form_ProcessingEx();
                _processForm.StartPosition = FormStartPosition.CenterParent;
                _processForm.IsShowCancelButton = isShowCancelButton;
                _processForm.ProcessText = msg;
                _processForm.ShowDialog(this);
            }
            else
            {
                ShowProcessFormDele cs = new ShowProcessFormDele(ShowProcessForm);
                this.Invoke(cs, new object[] { msg, isShowCancelButton });
            }
        }