public ItemsViewModel() { Title = "Browse"; Items = new ObservableCollection <Item>(); LoadItemsCommand = new Command(async() => await ExecuteLoadItemsCommand()); _navigationService = new SimpleNavigationService(); AddItemCommand = new Command(async() => await ExecuteAddItemCommand()); }
public DeliveryDetailWindow(IDeliveryContentsService deliveryContentsService, IMapper mapper, SimpleNavigationService navigationService, IOptions <AppSettings> settings) { _deliveryContentsService = deliveryContentsService; _mapper = mapper; _navigationService = navigationService; _settings = settings.Value; InitializeComponent(); }
public SimpleViewModel() { if (service == null) { service = SimpleNavigationService.Instance; } if (Cache == null) { Cache = new Dictionary <string, object>(); } }
public SalePage(ISaleService saleService, IClientService clientService, IEmployeeService employeeService, IOptions <AppSettings> settings, IMapper mapper, SimpleNavigationService navigationService, IMarketService marketService) { _saleService = saleService; _clientService = clientService; _employeeService = employeeService; _settings = settings.Value; _mapper = mapper; _navigationService = navigationService; _marketService = marketService; InitializeComponent(); }
internal static void ConfigureUnityContainer(NavigationService navService, Snackbar mainSnackbar, DialogHost dialogHost) { ILogService logService = new LogService(logger); INavigationService navigationService = new SimpleNavigationService(navService); container.RegisterInstance(logService); container.RegisterInstance <IDataRepository>(new DataRepository(logService)); container.RegisterInstance(navigationService); container.RegisterInstance <IFileService>(new FileService()); container.RegisterInstance <IMessageService>(new MessageService(mainSnackbar, dialogHost)); container.RegisterInstance <ISaftValidator>(new SaftValidator()); //go to home navigationService.Navigate(PagesIds.HOME); }
public GamePageViewModel(SimpleNavigationService navService) { UserOptions = new UserOptions { Score = 1, ArrowRotationAngle = 10, NumberOfBubbles = 17 }; _navService = navService; QuitCommand = ReactiveCommand.Create(() => Environment.Exit(1)); SaveCommand = ReactiveCommand.CreateFromTask(async() => { await _navService.OpenDialogAsync(DialogToNavigate.Save, UserOptions); }); SetupCommand = ReactiveCommand.CreateFromTask(async() => { await _navService.OpenDialogAsync(DialogToNavigate.Setup); }); }
public DeliveryContentsPage(IDeliveryContentsService deliveryContentsService, IConsignmentService consignmentService, IDeliveryService deliveryService, IOptions <AppSettings> settings, IMapper mapper, IProviderService providerService, SimpleNavigationService navigationService, IGoodsService goodsService) { _deliveryContentsService = deliveryContentsService; _consignmentService = consignmentService; _deliveryService = deliveryService; _mapper = mapper; _providerService = providerService; _navigationService = navigationService; _goodsService = goodsService; _settings = settings.Value; InitializeComponent(); }
public MainWindow(SimpleNavigationService navigationService, IOptions <AppSettings> settings, IEmployeeService employeeService, IMapper mapper) { _navigationService = navigationService; _employeeService = employeeService; _mapper = mapper; _settings = settings.Value; EmployeeDtos = _mapper.Map <List <Employee>, List <EmployeeDTO> >(_employeeService.GetAll()); InitializeComponent(); sb = FindResource("LogInMenuClose") as Storyboard; LogOutBtn.Visibility = Visibility.Collapsed; HideMenu(); }
public ProductionPage(IProductionService productionService, IEmployeeService employeeService, IGoodsOwnService goodsOwnService, IOptions <AppSettings> settings, IMapper mapper, SimpleNavigationService navigationService, IProductionContentsService productionContentsService, ICategoryService categoryService, IGoodsInMarketOwnService goodsInMarketOwnService, IGoodsWriteOffOwnService goodsWriteOffOwnService) { _productionService = productionService; _employeeService = employeeService; _goodsOwnService = goodsOwnService; _mapper = mapper; _navigationService = navigationService; _productionContentsService = productionContentsService; _settings = settings.Value; _categoryService = categoryService; _goodsInMarketOwnService = goodsInMarketOwnService; _goodsWriteOffOwnService = goodsWriteOffOwnService; InitializeComponent(); UpdateDataGrid(); }
//set up dependency injection for settings and nav service public Dashboard(SimpleNavigationService navigationService, IOptions <AppSettings> settings) { InitializeComponent(); this.navigationService = navigationService; this.settings = settings.Value; }
public SimpleCore() { service = SimpleNavigationService.Instance; }