private void DishMenu_Click(object sender, EventArgs e)
        {
            frmDishInfo frmDish = frmDishInfo.GetFrmDishInfo();

            frmDish.Focus();
            frmDish.Show();
        }
Beispiel #2
0
        public static frmDishInfo GetFrmDishInfo()
        {
            if (frmDish == null)
            {
                lock (obj)
                {
                    if (frmDish == null)
                    {
                        frmDish = new frmDishInfo();
                    }
                }
            }

            return(frmDish);
        }
Beispiel #3
0
 private void frmDishInfo_FormClosed(object sender, FormClosedEventArgs e)
 {
     frmDish = null;
 }