public WorkspaceWindowViewModel(WorkspaceViewModel workspaceViewModel, IAppWindowsService appWindowsService) { this.appWindowsService = appWindowsService; Name = workspaceViewModel.Name; Barcodes = new ObservableCollection <BarcodeViewModel>(workspaceViewModel.Barcodes); }
public ExamplesViewModel(IGeneratorService generatorService, IDialogsService dialogsService, IAppWindowsService appWindowsService, IAppSettingsService appSettingsService) { this.dialogsService = dialogsService; this.generatorService = generatorService; this.appWindowsService = appWindowsService; this.appSettingsService = appSettingsService; }
public GenerationDataViewModel(IAppDialogsService appDialogsService, IAppWindowsService appWindowsService, IGeneratorService generatorService, ISystemService sysService, IAppSettingsService appSettingsService) { this.appDialogsService = appDialogsService; this.appWindowsService = appWindowsService; this.generatorService = generatorService; this.sysService = sysService; this.appSettingsService = appSettingsService; UseTemplateCommand = new DelegateCommand(UseTemplate, () => SelectedTemplate?.Handler != null); InitializeTemplates(); }
public GenerationViewModel(IAppDialogsService appDialogsService, IAppWindowsService appWindowsService, ISystemService sysService, IAppSettingsService appSettingsService, IGeneratorService generatorService) { this.appDialogsService = appDialogsService; this.appSettingsService = appSettingsService; generationData = new GenerationDataViewModel(appDialogsService, appWindowsService, generatorService, sysService, appSettingsService) { ParentViewModel = this }; LoadSettings(); AddNewCommand = new DelegateCommand(() => GenerateBarcode(true)); EditCommand = new DelegateCommand(() => GenerateBarcode(false), () => Edit); }
public ServicesAggregator(IAppEvents appEvents, IGeneratorService generatorService, IAppDialogsService appDialogsService, IAppWindowsService appWindowsService, ISystemService systemService, IAppSettingsService appSettingsService, IStorageService storageService, IDocExportService docExportService, IStateSaverService stateSaverService, IContainerExtension containerExtension, ILoggerService loggerService) { AppEvents = appEvents; GeneratorService = generatorService; AppDialogsService = appDialogsService; AppWindowsService = appWindowsService; SysService = systemService; AppSettingsService = appSettingsService; StorageService = storageService; DocExportService = docExportService; StateSaverService = stateSaverService; ContainerExtension = containerExtension; LoggerService = loggerService; }
public SettingsViewModel(IAppWindowsService appWindowsService, IAppSettingsService appSettingsService, IAppDialogsService appDialogsService, ILoggerService loggerService, IAppEvents appEvents) { this.appWindowsService = appWindowsService; this.appSettingsService = appSettingsService; this.appDialogsService = appDialogsService; this.loggerService = loggerService; this.appEvents = appEvents; generationData = new GenerationBaseDataViewModel(); DragDropModes = new DragDropModesViewModel(); SaveCommand = new DelegateCommand(Save); CloseCommand = new DelegateCommand(() => OnClose?.Invoke()); SetStoragePathCommand = new DelegateCommand(SetStoragePath); RawSettingsCommand = new DelegateCommand(RawSettings); InitializeAddModes(BarcodeAddModes); InitializeAddModes(WorkspaceAddModes); InitializeStartupModes(); LoadSettings(); }
public ObservableCollection <TemplateViewModel> GetAllTemplates(IAppWindowsService appWindowsService) { return(new ObservableCollection <TemplateViewModel> { new TemplateViewModel { Title = "Select barcode template" }, new TemplateViewModel { Template = BarcodeTemplate.Product, Title = "Product code - EAN13", Handler = appWindowsService.OpenTemplateWindow <ProductViewModel> }, new TemplateViewModel { Template = BarcodeTemplate.LongProduct, Title = "Long product code - EAN128", Handler = appWindowsService.OpenTemplateWindow <LongProductViewModel> }, new TemplateViewModel { Template = BarcodeTemplate.NmvsProduct, Title = "NMVS product code - DataMatrix", Handler = appWindowsService.OpenTemplateWindow <NmvsProductViewModel> }, new TemplateViewModel { Template = BarcodeTemplate.Container, Title = "Container - Code128", Handler = appWindowsService.OpenTemplateWindow <ContainerViewModel> }, new TemplateViewModel { Template = BarcodeTemplate.Location, Title = "Location - Code128 ", Handler = appWindowsService.OpenTemplateWindow <LocationViewModel> }, new TemplateViewModel { Template = BarcodeTemplate.Order, Title = "Order (DZ) - Code128", Handler = appWindowsService.OpenTemplateWindow <OrderViewModel> }, new TemplateViewModel { Template = BarcodeTemplate.ReleaseDocument, Title = "Release document (WZ) - Code128", Handler = appWindowsService.OpenTemplateWindow <ReleaseDocumentViewModel> }, new TemplateViewModel { Template = BarcodeTemplate.User, Title = "User - Code128", Handler = appWindowsService.OpenTemplateWindow <UserViewModel> }, new TemplateViewModel { Template = BarcodeTemplate.WarehouseAndStation, Title = "Warehouse and station - Code128", Handler = appWindowsService.OpenTemplateWindow <WarehouseAndStationViewModel> }, new TemplateViewModel { Template = BarcodeTemplate.Palette, Title = "Palette - Code128", Handler = appWindowsService.OpenTemplateWindow <PaletteViewModel> }, new TemplateViewModel { Template = BarcodeTemplate.Alley, Title = "Alley - Code128", Handler = appWindowsService.OpenTemplateWindow <AlleyViewModel> }, }); }