Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     Manufacturer.AddProizvodjac noviF = new Manufacturer.AddProizvodjac();
     if (noviF.ShowDialog() == DialogResult.OK)
     {
         Bindgrid();
     }
 }
Пример #2
0
        private void datagridProizvodjaci_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int proizvodjacId = Convert.ToInt32(datagridProizvodjaci.SelectedRows[0].Cells[0].Value);

            Manufacturer.AddProizvodjac noviF = new Manufacturer.AddProizvodjac(proizvodjacId);
            if (noviF.ShowDialog() == DialogResult.OK)
            {
                Bindgrid();
            }
        }