Пример #1
0
        private void Reset()
        {
            frmDetailProduct or = new frmDetailProduct();

            if (Application.OpenForms.OfType <frmDetailProduct>().Any())
            {
                Application.OpenForms.OfType <frmDetailProduct>().First().Close();
                or.Show();
            }
            else
            {
                or.Show();
            }
        }
Пример #2
0
        private void newProjectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDetailProduct dp = new frmDetailProduct();

            dp.Show();
        }