private void frmProductDetails_FormClosed(object sender, FormClosedEventArgs e)
        {
            frmMainForm mainForm = new frmMainForm();

            mainForm.Show();
            Hide();
        }
        private void frmProductEdit_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmMainForm mainForm = new frmMainForm();

            mainForm.Show();
            Hide();
        }
Exemplo n.º 3
0
        private void frmCustomersEdit_FormClosing(object sender, FormClosingEventArgs e)
        {
            //closes form/displays main form
            frmMainForm mainForm = new frmMainForm();

            mainForm.Show();
            Hide();
        }
Exemplo n.º 4
0
        private void frmCustomerAdd_FormClosed(object sender, FormClosedEventArgs e)
        {
            //when closing, shows main form and hides add customer form
            frmMainForm mainForm = new frmMainForm();

            mainForm.Show();
            Hide();
        }