예제 #1
0
        private void msiIngredients_Click(object sender, EventArgs e)
        {
            bool IsOpen = false;

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

            if (IsOpen == false)
            {
                FormIngredients f2 = new FormIngredients();
                f2.MdiParent = this;
                f2.Show();
            }
        }
예제 #2
0
        private void FormAddIngredient_FormClosing(object sender, FormClosingEventArgs e)
        {
            FormIngredients form = FormIngredients.getInstance();

            form.RefreshData();
        }
예제 #3
0
 public FormIngredients()
 {
     InitializeComponent();
     instance = this;
 }