Esempio n. 1
0
 private void ShowNewTransactionView()
 {
     using (var newTransactionView = new AddTransactionView())
     {
         newTransactionView.TransactionReady += NewTransactionView_TransactionSaved;
         newTransactionView.ShowDialog();
     }
 }
Esempio n. 2
0
        private void RecordJobPaymentButtonClicked(object sender, EventArgs e)
        {
            BuzzleFunctions.ShowWaitForm();

            var jobsTransactionType = _dataManager.GetJobsTransactionType();

            if (jobsTransactionType == null)
            {
                BuzzleFunctions.ShowMessage(
                    "No transaction type set for job payments. Please go to the general settings tab on the settings page and set a transaction type for job payments",
                    "Cannot record job payments");
                return;
            }

            using (var newTransactionView = new AddTransactionView(jobsTransactionType))
            {
                newTransactionView.TransactionReady += RecordJobPayment;
                BuzzleFunctions.HideWaitForm();
                newTransactionView.ShowDialog();
            }
        }