private void button1_Click(object sender, EventArgs e) { DetailStrelba form = new DetailStrelba(); if (form.OpenRecord(null)) { form.ShowDialog(); GetData(); } }
protected void EditRecord() { Strelba selectedStr = GetSelectedStr(); if (selectedStr != null) { DetailStrelba form = new DetailStrelba(); if (form.OpenRecord(selectedStr.idStr)) { form.ShowDialog(); GetData(); } } }