public HenListViewModel(IMessageBroker messageBroker,IHenService henService, IHenHouseService houseService, NewHenCommand newHenCommand,EditHenCommand editHenCommand, DeleteHenCommand deleteCommand) { this.henService = henService; this.messageBroker = messageBroker; this.houseService = houseService; NewCommand = newHenCommand; EditCommand = editHenCommand; DeleteCommand = deleteCommand; hens = new ObservableCollection<HenListItem>(); NavigationCommands = new List<CommandBase>() {NewCommand, DeleteCommand}; SubscribeMessages(); }
public HenListViewModel(IMessageBroker messageBroker, IHenService henService, IHenHouseService houseService, NewHenCommand newHenCommand, EditHenCommand editHenCommand, DeleteHenCommand deleteCommand) { this.henService = henService; this.messageBroker = messageBroker; this.houseService = houseService; NewCommand = newHenCommand; EditCommand = editHenCommand; DeleteCommand = deleteCommand; hens = new ObservableCollection <HenListItem>(); NavigationCommands = new List <CommandBase>() { NewCommand, DeleteCommand }; SubscribeMessages(); }
public HenEntryViewModel(IMessageBroker messageBroker, IHenService henService, IHenHouseService houseService, SaveHenCommand saveCommand, CancelCommand cancelCommand) { this.henService = henService; this.messageBroker = messageBroker; this.houseService = houseService; ActualSaveCommand = saveCommand; CancelCommand = cancelCommand; PropertiesToValidate = new List<string> { "Name", "Type", "HouseId" }; OnRefreshHouseList(null); InitializeCommands(); SubscribeMessages(); }
public HenEntryViewModel(IMessageBroker messageBroker, IHenService henService, IHenHouseService houseService, SaveHenCommand saveCommand, CancelCommand cancelCommand) { this.henService = henService; this.messageBroker = messageBroker; this.houseService = houseService; ActualSaveCommand = saveCommand; CancelCommand = cancelCommand; PropertiesToValidate = new List <string> { "Name", "Type", "HouseId" }; OnRefreshHouseList(null); InitializeCommands(); SubscribeMessages(); }
public HenController(IHenService henService) { this.henService = henService; }
public DeleteHenCommand(IMessageBroker messageBroker, IHenService henService) { this.henService = henService; this.messageBroker = messageBroker; }
public SaveHenCommand(IMessageBroker messageBroker, IHenService henService) { Text = () => "Save"; this.henService = henService; this.messageBroker = messageBroker; }
public HensController(IHenService henService) : base(henService) { }