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

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