protected override void NewRecord() { FormLockerDetail form = new FormLockerDetail(); if (form.OpenRecord(null, null)) { form.ShowDialog(); RefreshData(); } }
protected override void EditRecord() { Locker selectedLocker = GetSelectedLocker(); if (selectedLocker != null) { FormLockerDetail form = new FormLockerDetail(); if (form.OpenRecord(selectedLocker.RecordId, selectedLocker.ToGender)) { form.ShowDialog(); RefreshData(); } } }