/// <summary> /// Initializes a new instance of the <see cref="HandlingReportViewModel"/> class. /// </summary> /// <param name="handlingReportServiceClient"> /// The handling Report Service Client. /// </param> /// <param name="messageBoxCreator"> /// The message Box Creator. /// </param> public HandlingReportViewModel( IHandlingReportService handlingReportServiceClient, IMessageBoxCreator messageBoxCreator) { this.handlingReportServiceClient = handlingReportServiceClient; this.messageBoxCreator = messageBoxCreator; // initialise validator for this view model this.handlingReportViewModelValidator = new HandlingReportViewModelValidator(this); this.RegisterReportCommand = new DelegateCommand <object>(this.Register, this.CanRegister); HandlingReportCommands.RegisterHandlingReportCommand.RegisterCommand(this.RegisterReportCommand); }
/// <summary> /// Initializes a new instance of the <see cref="HandlingReportViewModel"/> class. /// </summary> /// <param name="handlingReportServiceClient"> /// The handling Report Service Client. /// </param> /// <param name="messageBoxCreator"> /// The message Box Creator. /// </param> public HandlingReportViewModel( IHandlingReportService handlingReportServiceClient, IMessageBoxCreator messageBoxCreator) { this.handlingReportServiceClient = handlingReportServiceClient; this.messageBoxCreator = messageBoxCreator; // initialise validator for this view model this.handlingReportViewModelValidator = new HandlingReportViewModelValidator(this); this.RegisterReportCommand = new DelegateCommand<object>(this.Register, this.CanRegister); HandlingReportCommands.RegisterHandlingReportCommand.RegisterCommand(this.RegisterReportCommand); }