示例#1
0
        private void metroButtonCheckAdd_Click(object sender, EventArgs e)
        {
            CheckEntityForm form = new CheckEntityForm();

            form.Text          = "Добавление чека";
            form.btnAddvisible = true;
            form.Show();
        }
示例#2
0
 private void metroButtonCheckEdit_Click(object sender, EventArgs e)
 {
     try
     {
         int             cid   = Convert.ToInt32(dataGridViewCheck.SelectedCells[0].Value.ToString());
         var             check = db.Checks.Find(cid);
         CheckEntityForm form  = new CheckEntityForm();
         form.Text           = "Изменение чека";
         form.btnEditvisible = true;
         form.Show();
     }
     catch (Exception gg)
     {
         MessageBox.Show(gg.Message, "Ошибка");
     }
 }