Ejemplo n.º 1
0
        private void ButtonCreate_Click(object sender, EventArgs e)
        {
            FormEquipment form = Container.Resolve <FormEquipment>();

            if (form.ShowDialog() == DialogResult.OK)
            {
                LoadData();
            }
        }
Ejemplo n.º 2
0
 private void ButtonUpd_Click(object sender, EventArgs e)
 {
     if (dataGridView.SelectedRows.Count == 1)
     {
         FormEquipment form = Container.Resolve <FormEquipment>();
         form.Id = Convert.ToInt32(dataGridView.SelectedRows[0].Cells[0].Value);
         if (form.ShowDialog() == DialogResult.OK)
         {
             LoadData();
         }
     }
 }