Пример #1
0
        private void ButtonCreate_Click(object sender, EventArgs e)
        {
            FormEmployee form = Container.Resolve <FormEmployee>();

            if (form.ShowDialog() == DialogResult.OK)
            {
                LoadData();
            }
        }
Пример #2
0
 private void ButtonUpd_Click(object sender, EventArgs e)
 {
     if (dataGridView.SelectedRows.Count == 1)
     {
         FormEmployee form = Container.Resolve <FormEmployee>();
         form.Id = Convert.ToInt32(dataGridView.SelectedRows[0].Cells[0].Value);
         if (form.ShowDialog() == DialogResult.OK)
         {
             LoadData();
         }
     }
 }