Example #1
0
        /// <summary>
        /// 彈出提示框
        /// </summary>
        /// <param name="message"></param>
        public void Alter(string message)
        {
            BeginInvoke(new CallBackDelegate(() =>
            {
                try
                {
                    AlertForm _alterForm = new AlertForm();
                    _alterForm.WindowState = FormWindowState.Normal;
                    _alterForm.StartPosition = FormStartPosition.CenterScreen;
                    _alterForm.Message = message;

                    _alterForm.ShowDialog(this);
                    _alterForm.TopLevel = true;
                    _alterForm.BringToFront();
                }
                catch (Exception ex)
                {
                    mLogger.Error(this._ControlCenter.MachineNo + "--" + ex.Message);
                }
            }));
        }