protected override void NewRecord() { FormClientDetail form = new FormClientDetail(); if (form.OpenRecord(null)) { form.ShowDialog(); RefreshData(); } }
protected override void EditRecord() { ExtendedClient selectedClient = GetSelectedClient(); if (selectedClient != null) { FormClientDetail form = new FormClientDetail(); if (form.OpenRecord(selectedClient.ClientId)) { form.ShowDialog(); RefreshData(); } } }