Пример #1
0
        private void DishMenu_Click(object sender, EventArgs e)
        {
            frmDishInfo frmDish = frmDishInfo.GetFrmDishInfo();

            frmDish.Focus();
            frmDish.Show();
        }
Пример #2
0
        public static frmDishInfo GetFrmDishInfo()
        {
            if (frmDish == null)
            {
                lock (obj)
                {
                    if (frmDish == null)
                    {
                        frmDish = new frmDishInfo();
                    }
                }
            }

            return(frmDish);
        }
Пример #3
0
 private void frmDishInfo_FormClosed(object sender, FormClosedEventArgs e)
 {
     frmDish = null;
 }