private void cmsNewPayment_Click(object sender, EventArgs e) { if (_selectedPurchasing != null) { DebtEditorForm editor = Bootstrapper.Resolve <DebtEditorForm>(); editor.SelectedPurchasing = SelectedPurchasing; 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 purchasing tidak dapat diubah pada menu ini"); } else { DebtEditorForm editor = Bootstrapper.Resolve <DebtEditorForm>(); editor.SelectedDebt = _selectedTransaction; editor.ShowDialog(this); RefreshDataView(); } } }