Exemplo n.º 1
0
        private void pbxQuit_MouseClick(object sender, MouseEventArgs e)
        {
            YesNo y = new YesNo("Warning", "      Quit ?", "Yes", "No");

            y.lb_Txt.Location = new Point(35, 27);
            y.Size            = new Size(204, 150);
            y.b_Yes.Location  = new Point(12, 63);
            y.b_No.Location   = new Point(105, 63);
            DialogResult dr = y.ShowDialog();

            if (dr == DialogResult.Yes)
            {
                SwitchFun(EFunctionName.CONFIG);
                //保存频谱配置
                App_Settings.spc.StoreSettings();
                //Program.mSwitch.Disconnect();
                StartForm sf = new StartForm("Closing......");
                sf.infoMsg = "Port is Closing...";
                sf.ShowDialog();


                this.Close();
            }
        }
Exemplo n.º 2
0
 static void Show()
 {
     handel = sf.Handle;
     sf.ShowDialog();
 }