Example #1
0
        private void ViewPersonStrip_Click(object sender, EventArgs e)
        {
            string     id      = MainGrid.Rows[MainGrid.CurrentCell.RowIndex].Cells["Табельный номер"].Value.ToString();
            ViewPerson service = new ViewPerson(id);

            service.ShowDialog();
        }
Example #2
0
 private void ViewPersonStrip_Click(object sender, EventArgs e)
 {
     try
     {
         string     id      = Поле_главного_меню.Rows[Поле_главного_меню.CurrentCell.RowIndex].Cells["Табельный номер"].Value.ToString();
         ViewPerson service = new ViewPerson(id);
         service.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Не выбран сотрудник, сначала создайте сотрудника", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         return;
     }
 }