public AdditionalCostEntryViewModel(IMessageBroker broker, IAdditionalCostService costService,
                                            SaveAdditionalCostCommand saveCommand, CancelCommand cancelCommand)
        {
            this.broker = broker;
            this.costService = costService;

            ActualSaveCommand = saveCommand;
            CancelCommand = cancelCommand;

            PropertiesToValidate = new List<string> { "Id","Name","Value"};

            InitializeCommands();
            SubscribeMessages();
        }
Пример #2
0
        public AdditionalCostEntryViewModel(IMessageBroker broker, IAdditionalCostService costService,
                                            SaveAdditionalCostCommand saveCommand, CancelCommand cancelCommand)
        {
            this.broker      = broker;
            this.costService = costService;

            ActualSaveCommand = saveCommand;
            CancelCommand     = cancelCommand;

            PropertiesToValidate = new List <string> {
                "Id", "Name", "Value"
            };

            InitializeCommands();
            SubscribeMessages();
        }