protected void AddRecord() { DZbran form = new DZbran(); if (form.OpenRecord(null)) { form.ShowDialog(); GetData(); } }
protected void EditRecord() { Zbran selectedZbr = GetSelectedZbr(); if (selectedZbr != null) { DZbran form = new DZbran(); if (form.OpenRecord(selectedZbr.Id)) { form.ShowDialog(); GetData(); } } GetData(); }