private void addPartToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAddPart addPart = new frmAddPart(this);

            addPart.StartPosition = FormStartPosition.CenterScreen;
            addPart.Show();
            this.Hide();
        }
Пример #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            frmMainMenu MainMenu = new frmMainMenu();

            MainMenu.StartPosition = FormStartPosition.CenterScreen;

            frmAddPart addPart = new frmAddPart();

            Application.Run(MainMenu);
        }