コード例 #1
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();
        }
コード例 #2
0
        public AdditionalCostListViewModel(IMessageBroker broker, IAdditionalCostService costService,
                                           NewAdditionalCostCommand newCommand, EditAdditionalCostCommand editCommand,
                                           DeleteAdditionalCostCommand deleteCommand)
        {
            this.broker = broker;
            this.costService = costService;

            NewCommand = newCommand;
            EditCommand = editCommand;
            DeleteCommand = deleteCommand;
            NavigationCommands =new List<CommandBase>(){NewCommand, DeleteCommand};

            costList = new ObservableCollection<AdditionalCost>();
            SubscribeMessages();
        }
コード例 #3
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();
        }
コード例 #4
0
        public AdditionalCostListViewModel(IMessageBroker broker, IAdditionalCostService costService,
                                           NewAdditionalCostCommand newCommand, EditAdditionalCostCommand editCommand,
                                           DeleteAdditionalCostCommand deleteCommand)
        {
            this.broker      = broker;
            this.costService = costService;

            NewCommand         = newCommand;
            EditCommand        = editCommand;
            DeleteCommand      = deleteCommand;
            NavigationCommands = new List <CommandBase>()
            {
                NewCommand, DeleteCommand
            };

            costList = new ObservableCollection <AdditionalCost>();
            SubscribeMessages();
        }
コード例 #5
0
 public SaveAdditionalCostCommand(IMessageBroker broker, IAdditionalCostService costService)
     : base(broker)
 {
     this.broker      = broker;
     this.costService = costService;
 }
コード例 #6
0
 public DeleteAdditionalCostCommand(IAdditionalCostService costService, IMessageBroker messageBroker)
 {
     this.costService   = costService;
     this.messageBroker = messageBroker;
 }
コード例 #7
0
 public AdditionalCostController(IAdditionalCostService service) : base(service)
 {
 }
コード例 #8
0
 public DeleteAdditionalCostCommand(IAdditionalCostService costService, IMessageBroker messageBroker)
 {
     this.costService = costService;
     this.messageBroker = messageBroker;
 }