private void OnCreateNewSurprisePaymentMonitorComplete(object sender, DialogResponseEventArgs dialogResponseEventArgs) { if (dialogResponseEventArgs.Canceled || dialogResponseEventArgs.CorrelationId != CorrelationId) { return; } CorrelationId = Guid.NewGuid(); try { this.dashboardService.CreateNewSurprisePaymentMonitorWidget( this.createNewSurprisePaymentMonitorController.Selected.Code, this.createNewSurprisePaymentMonitorController.PaymentStartDate, this.createNewSurprisePaymentMonitorController.Frequency); } catch (ArgumentException ex) { this.uiContext.UserPrompts.MessageBox.Show(ex.Message, "Unable to create new surprise payment monitor widget."); } }
private void OnCreateNewFixedProjectComplete(object sender, DialogResponseEventArgs dialogResponseEventArgs) { if (dialogResponseEventArgs.Canceled || dialogResponseEventArgs.CorrelationId != CorrelationId) { return; } CorrelationId = Guid.NewGuid(); try { this.dashboardService.CreateNewFixedBudgetMonitorWidget( this.createNewFixedBudgetController.Code, this.createNewFixedBudgetController.Description, this.createNewFixedBudgetController.Amount); } catch (ArgumentException ex) { this.uiContext.UserPrompts.MessageBox.Show(ex.Message, "Unable to create new fixed budget project"); } }