Example #1
0
        public ProjectPageViewModel(INavigationService navigationService, ILautData lautData)
        {
            _navigationService = navigationService;
            _lautData          = lautData;

            Projects = _lautData.GetProjects();

            ItemProjectCommand = new DelegateCommand <Project>(ExecuteItemProjectCommand);
        }
        public MenuPageViewModel(INavigationService navigationService, ILautData lautData)
        {
            _navigationService = navigationService;
            _lautData          = lautData;

            MenuList        = _lautData.GetMenuItens();
            ItemListCommand = new DelegateCommand <Menu>(ExecuteItemListCommand);
            AboutCommand    = new DelegateCommand(ExecuteAboutCommand);
        }
        public ServicePageViewModel(INavigationService navigationService, ILautData lautData)
        {
            _navigationService = navigationService;
            _lautData          = lautData;

            Services = _lautData.GetServices();

            ItemServiceCommand    = new DelegateCommand <Service>(ExecuteItemServiceCommand);
            NavigateToFormCommand = new DelegateCommand(ExecuteNavigateToFormCommand);
        }