Exemplo n.º 1
0
 /// <summary>
 /// 關閉離開
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void toolStripbtnExit_Click(object sender, EventArgs e)
 {
     if (GlobalParameter.UseMode.Equals("1"))
     {
         LiveviewFormProperty.ReadClose(liveviewForm1, readerAccessor);
     }
     this.Close();
 }
Exemplo n.º 2
0
        /// <summary>
        /// ToolStripMenuItem_Click事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToolStripMenuItemClick(object sender, EventArgs e)
        {
            ToolStripMenuItem toolStripMenuItem = (ToolStripMenuItem)sender;

            switch (toolStripMenuItem.Name)
            {
            case "partNoToolStripMenuItem":
                PartNoSet partNoSet = new PartNoSet();
                partNoSet.ShowDialog();
                break;

            case "trayToolStripMenuItem":
                TraySet traySet = new TraySet();
                traySet.ShowDialog();
                break;

            case "plcToolStripMenuItem":
                PartNoWritePLC partNoWritePLC = new PartNoWritePLC();
                partNoWritePLC.ShowDialog();
                break;

            case "setToolStripMenuItem":
                LaserSet laserSet = new LaserSet();
                laserSet.ShowDialog();
                break;

            case "printToolStripMenuItem":
                LaserPrinting laserPrinting = new LaserPrinting();
                laserPrinting.ShowDialog();
                break;

            case "ReadToolStripMenuItem":
                if (GlobalParameter.UseMode.Equals("1"))
                {
                    LiveviewFormProperty.ReadClose(liveviewForm1, readerAccessor);
                }
                Reader firstStepApp = new Reader();
                firstStepApp.ShowDialog();
                break;

            case "recChangeToolStripMenuItem":
                RecChangeReport recChangeReport = new RecChangeReport();
                recChangeReport.ShowDialog();
                break;

            case "recErrorToolStripMenuItem":
                RecErrorReport recErrorReport = new RecErrorReport();
                recErrorReport.ShowDialog();
                break;

            case "accountToolStripMenuItem":
                AccountSet accountSet = new AccountSet();
                accountSet.ShowDialog();
                break;

            case "pathToolStripMenuItem":

                break;

            case "controlToolStripMenuItem":

                break;

            default:
                Environment.Exit(0);
                break;
            }
        }