protected void AddRecord() { DStrelba form = new DStrelba(); if (form.OpenRecord(null)) { form.ShowDialog(); GetData(); } }
protected void EditRecord() { Strelba selectedStr = GetSelectedStr(); if (selectedStr != null) { DStrelba form = new DStrelba(); if (form.OpenRecord(selectedStr.Id)) { form.ShowDialog(); GetData(); } } GetData(); }