示例#1
0
        private void gérerToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            bool IsOpen = false;

            foreach (Form f in Application.OpenForms)
            {
                if (f.Text == "FormDishes")
                {
                    IsOpen = true;
                    f.Focus();
                    break;
                }
            }

            if (IsOpen == false)
            {
                FormCategories f2 = new FormCategories();
                f2.MdiParent = this;
                f2.Show();
            }
        }
示例#2
0
        private void FormAddCategory_FormClosing(object sender, FormClosingEventArgs e)
        {
            FormCategories form = FormCategories.getInstance();

            form.RefreshData();
        }
示例#3
0
 public FormCategories()
 {
     InitializeComponent();
     instance = this;
 }