private void ButtonCreate_Click(object sender, EventArgs e)
        {
            FormEmployee form = Container.Resolve <FormEmployee>();

            if (form.ShowDialog() == DialogResult.OK)
            {
                LoadData();
            }
        }
 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();
         }
     }
 }