private void button1_Click(object sender, EventArgs e) { DetailZakaznik form = new DetailZakaznik(); if (form.OpenRecord(null)) { form.ShowDialog(); GetData(); } }
protected void EditRecord() { Zakaznik selectedZak = GetSelectedZak(); if (selectedZak != null) { DetailZakaznik form = new DetailZakaznik(); if (form.OpenRecord(selectedZak.idZak)) { form.ShowDialog(); GetData(); } } }