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(); }
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(); }
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(); }
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(); }
public SaveAdditionalCostCommand(IMessageBroker broker, IAdditionalCostService costService) : base(broker) { this.broker = broker; this.costService = costService; }
public DeleteAdditionalCostCommand(IAdditionalCostService costService, IMessageBroker messageBroker) { this.costService = costService; this.messageBroker = messageBroker; }
public AdditionalCostController(IAdditionalCostService service) : base(service) { }