Exemple #1
0
        private void ProductionProcess_Click(object sender, EventArgs e)
        {
            frmProduction ProductProcess = new frmProduction();

            ProductProcess.MdiParent   = this;
            ProductProcess.WindowState = FormWindowState.Maximized;
            ProductProcess.Show();
        }
 private void productionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (production.IsDisposed)
     {
         production = new frmProduction();
     }
     production.MdiParent = this;
     production.Show();
     production.BringToFront();
 }
Exemple #3
0
        private void btnClicks(object sender, RoutedEventArgs e)
        {
            try
            {
                switch (((Control)sender).Name.ToString())
                {
                case nameof(btnRework):
                    frmProduction fpr = new frmProduction {
                        Owner = this, WindowStartupLocation = WindowStartupLocation.CenterOwner
                    };
                    fpr.Show();
                    Hide();
                    break;

                case nameof(btnRepair):
                    frmRepair rpr = new frmRepair(false)
                    {
                        Owner = this, WindowStartupLocation = WindowStartupLocation.CenterOwner
                    };
                    rpr.Show();
                    Hide();
                    break;

                case nameof(btnReportViewer):
                    Process.Start(Properties.Settings.Default.DefaultReportManagerLink);
                    break;

                case nameof(btnQCDQE):
                    frmQCDQE fQC = new frmQCDQE {
                        Owner = this, WindowStartupLocation = WindowStartupLocation.CenterOwner
                    };
                    fQC.Show();
                    Hide();
                    break;

                case nameof(btnSettings):
                    frmSettings fSettings = new frmSettings {
                        Owner = this, WindowStartupLocation = WindowStartupLocation.CenterOwner
                    };
                    fSettings.Show();
                    Hide();
                    break;

                case nameof(btnTicketLookup):
                    frmGlobalSearch.Instance.Owner = GlobalInstance;
                    frmGlobalSearch.Instance.WindowStartupLocation = WindowStartupLocation.CenterOwner;
                    frmGlobalSearch.Instance.CenterWindow();
                    frmGlobalSearch.Instance.Show();
                    Hide();
                    break;

                case nameof(btnTechFilesForm):
                    frmBoardFileManager alias = new frmBoardFileManager(directDialog: true)
                    {
                        StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
                    };
                    alias.Show();
                    break;

                case nameof(btnFirebaseWindow):
                    wndFireabase fireabase = new wndFireabase();
                    fireabase.Show();
                    break;
                }
            }
            catch (Exception ex)
            {
                csExceptionLogger.csExceptionLogger.Write("MainWindow_btnClicks", ex);
                Show();
            }
        }