private void button1_Click(object sender, EventArgs e) { DetailZbran form = new DetailZbran(); if (form.OpenRecord(null)) { form.ShowDialog(); GetData(); } }
protected void EditRecord() { Zbran selectedZbr = GetSelectedZbr(); if (selectedZbr != null) { DetailZbran form = new DetailZbran(); if (form.OpenRecord(selectedZbr.idZbr)) { form.ShowDialog(); GetData(); } } }