Beispiel #1
0
        private void msiDishes_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)
            {
                FormDishes f2 = new FormDishes();
                f2.MdiParent = this;
                f2.Show();
            }
        }
Beispiel #2
0
        private void FormAddDish_FormClosing(object sender, FormClosingEventArgs e)
        {
            FormDishes form = FormDishes.getInstance();

            form.RefreshData();
        }
Beispiel #3
0
 public FormDishes()
 {
     InitializeComponent();
     instance = this;
 }