public MainPageViewModel(INavigationService navigationService, IBatFamilyService BatSericeParam) : base(navigationService) { BatItemService = BatSericeParam; _ItemSeleccionado = new BatFamily(); GetBatFamilies(); this.AddCommand = new DelegateCommand(AddTodoItem, () => !string.IsNullOrEmpty(InputText)).ObservesProperty(() => this.InputText); DeleteCommand = new DelegateCommand <BatFamily>(this.DeleteTodoItem); UpdateCommand = new DelegateCommand <BatFamily>(UpdateTodoItem); }
//public MainPageViewModel(INavigationService navigationService) // : base(navigationService) //{ // Title = "Main Page"; //} /// <summary> /// /// </summary> /// <param name="navigationService"></param> /// <param name="batFamilyServiceParam"></param> public MainPageViewModel(INavigationService navigationService, IBatFamilyService batFamilyServiceParam) : base(navigationService) { this.BatItemService = batFamilyServiceParam; this.AddCommand = new DelegateCommand (this.AddTodoItem, () => !string.IsNullOrEmpty(this.InputText)).ObservesProperty(() => this.InputText); this.DeleteCommand = new DelegateCommand <BatFamily>(this.DeleteTodoItem); this.UpdateCommand = new DelegateCommand (this.UpdateTodoItem);//, () => !string.IsNullOrEmpty(this.InputText));//.ObservesProperty(() => this.InputText); }