示例#1
0
        private void configurationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {

                frmConfiguration _frmConf = new frmConfiguration();
                jolprFindWindow.GetWindows("Database Information", _frmConf);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#2
0
 private void _lcMenuItem_Click(object sender, EventArgs e)
 {
     System.Windows.Forms.MenuItem _lcMenuIten = (MenuItem)sender;
     switch (_lcMenuIten.Text)
     {
         case "Exit":
             this.Close();
             break;
         case "Data Base Setup":
             frmQuality2004Setup frmSetup = new frmQuality2004Setup();
             frmSetup.MdiParent = this;
             frmSetup.Text = "Data Base Setup";
             frmSetup.StartPosition = FormStartPosition.CenterScreen;
             frmSetup.WindowState = FormWindowState.Normal;
             //jolprFindWindow.GetWindows("Data Base Setup", frmSetup);
             frmSetup.Show();
             break;
         case "Add Menu":
             frmQuality2004AddMenu frmAddMenu = new frmQuality2004AddMenu();
             frmAddMenu.MdiParent = this;
             frmAddMenu.Text = "Add Menu";
             frmAddMenu.StartPosition = FormStartPosition.CenterScreen;
             frmAddMenu.WindowState = FormWindowState.Normal;
             frmAddMenu.Show();
             //jolprFindWindow.GetWindows("Add Menu", frmAddMenu);
             break;
         case "Delete Menu":
             frmQuality2004DeleteMenu frmDeleteMenu = new frmQuality2004DeleteMenu();
             frmDeleteMenu.MdiParent = this;
             frmDeleteMenu.Text = "Delete Menu";
             frmDeleteMenu.StartPosition = FormStartPosition.CenterScreen;
             frmDeleteMenu.WindowState = FormWindowState.Normal;
             frmDeleteMenu.Show();
             //jolprFindWindow.GetWindows("Delete Menu", frmDeleteMenu);
             break;
         case "Database Information":
             frmConfiguration _frmConf = new frmConfiguration();
             _frmConf.MdiParent = this;
             _frmConf.StartPosition = FormStartPosition.CenterScreen;
             _frmConf.Text = "Database Information";
             _frmConf.WindowState = FormWindowState.Normal;
             _frmConf.Show();
             //jolprFindWindow.GetWindows("Database Information", _frmConf);
             break;
         default:
             frmQuality2004ViewBatch frmViewBatch = new frmQuality2004ViewBatch(_lcMenuIten.Text);
             frmViewBatch.MdiParent = this;
             frmViewBatch.Text = _lcMenuIten.Text;
             frmViewBatch.StartPosition = FormStartPosition.CenterScreen;
             frmViewBatch.WindowState = FormWindowState.Normal;
             frmViewBatch.Show();
             //jolprFindWindow.GetWindows(_lcMenuIten.Text, frmViewBatch);
             break;
     }
 }