private void cmsNewPayment_Click(object sender, EventArgs e) { if (_selectedInvoice != null) { CreditEditorForm editor = Bootstrapper.Resolve <CreditEditorForm>(); editor.SelectedInvoice = SelectedInvoice; editor.ShowDialog(this); btnSearch.PerformClick(); } }
private void cmsEditData_Click(object sender, EventArgs e) { if (_selectedTransaction != null && TransactionListData != null && TransactionListData.Count > 0) { if (_selectedTransaction.Id == TransactionListData.FirstOrDefault().Id) { this.ShowError("Data pembayaran invoice tidak dapat diubah pada menu ini"); } else { CreditEditorForm editor = Bootstrapper.Resolve <CreditEditorForm>(); editor.SelectedCredit = _selectedTransaction; editor.ShowDialog(this); RefreshDataView(); } } }