コード例 #1
0
        //Row Two  -------------------------------------------------------------------------------
        private void buttonRowTwo_Click(object sender, EventArgs e)
        {
            // Main form
               if (ButtonSelect == 0)
            {
              // MessageBox.Show("Deleted", "Information");
              //      Open Historical File +++++++++++++
            }
            // FILE TAB - Open production cruise ++++++++++++++
               else if (ButtonSelect == 1)
            {
               //   Create new design database +++++++++++++++++
               MessageBox.Show("Open Production Not Completed at this Time", "Information");
               //buttonSetup.Enabled = true;
               //buttonDesign.Enabled = true;
               //buttonTools.Enabled = true;
            }

            // SETUP TAB   Historical Setup +++++++++++++++++
            else if (ButtonSelect == 2)
            {
               //MessageBox.Show("Historical Setup", "Information");
               //  Pass in dalPathDesign
               HistoricalSetupWizard hsDlg = new HistoricalSetupWizard(this,canCreateNew);
               hsDlg.Owner = this;
               hsDlg.ShowDialog(this);
               buttonSetup.Enabled = true;
               buttonDesign.Enabled = true;
               buttonTools.Enabled = true;

            }
            //DESIGN TAB +++++++++++++++++
               else if (ButtonSelect == 3)
                MessageBox.Show("Add Additional Samples Selected", "Information");
            //TOOLS TAB ++++++++++++++++++
               else if (ButtonSelect == 4)
                MessageBox.Show("Set Default Directories Selected", "Information");
        }
コード例 #2
0
        //Row Two  -------------------------------------------------------------------------------
        private void buttonRowTwo_Click(object sender, EventArgs e)
        {
            // Main form
               if (ButtonSelect == 0)
               {

               }
            // FILE TAB - Open production cruise ++++++++++++++
               else if (ButtonSelect == 1)
            {
               //   Create new design database +++++++++++++++++
               //MessageBox.Show("Open Production Not Completed at this Time", "Information");
            }

            // SETUP TAB   Historical Setup +++++++++++++++++
            else if (ButtonSelect == 2)
            {

               if (prodFile)
               {
                  MessageBox.Show("Production File Found.\nCannot modify cruise design.\n", "Warning", MessageBoxButtons.OK);
                  return;
               }
               //MessageBox.Show("Historical Setup", "Information");
               //  Pass in dalPathDesign
               HistoricalSetupWizard hsDlg = new HistoricalSetupWizard(this,canCreateNew);
               hsDlg.Owner = this;
               hsDlg.ShowDialog(this);

               if (canCreateNew)
               {
                  this.cdDAL = new DAL(dalPathDesign, false);
               }

               buttonSetup.Enabled = true;
               buttonDesign.Enabled = true;
               buttonTools.Enabled = true;

            }
            //DESIGN TAB +++++++++++++++++
               else if (ButtonSelect == 3)
               {
              //MessageBox.Show("Add Additional Samples Selected", "Information");
              Cursor.Current = Cursors.WaitCursor;

              Design_Pages.Processing pDlg = new CruiseDesign.Design_Pages.Processing(this, dalPathCruise, reconExists, prodFile);

              if (errFlag == 1)
              {
                 Cursor.Current = this.Cursor;
                 return;
              }

              pDlg.ShowDialog();

              Cursor.Current = this.Cursor;

              ProductionDesign.ProductionDesignMain dmDlg = new CruiseDesign.ProductionDesign.ProductionDesignMain(this);
              dmDlg.ShowDialog(this);

               }
               //TOOLS TAB ++++++++++++++++++
               else if (ButtonSelect == 4)
              MessageBox.Show("Set Default Directories Selected", "Information");
        }