Beispiel #1
0
        public BaseWindow()
        {
            appSettingsService = ContainerLocator.Container.Resolve <IAppSettingsService>();
            appDialogsService  = ContainerLocator.Container.Resolve <IAppDialogsService>();
            loggerService      = ContainerLocator.Container.Resolve <ILoggerService>();

            KeyDown += BaseWindow_KeyDown;
        }
        public RawSettingsViewModel(IAppDialogsService appDialogsService, ILoggerService loggerService)
        {
            this.appDialogsService = appDialogsService;
            this.loggerService     = loggerService;

            SaveCommand  = new DelegateCommand(Save);
            CloseCommand = new DelegateCommand(() => OnClose?.Invoke());
        }
        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();
        }
Beispiel #4
0
        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);
        }
        protected BaseTemplateViewModel(IAppDialogsService dialogsService)
        {
            this.dialogsService = dialogsService;

            AcceptCommand = new DelegateCommand(() =>
            {
                if (!Validate())
                {
                    return;
                }

                ResultData = GetResultData();
                OnClose?.Invoke();
            });
            CloseCommand = new DelegateCommand(() => OnClose?.Invoke());
        }
Beispiel #6
0
 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;
 }
Beispiel #7
0
        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();
        }
Beispiel #8
0
 public AlleyViewModel(IAppDialogsService dialogsService)
     : base(dialogsService)
 {
 }
Beispiel #9
0
 public ReleaseDocumentViewModel(IAppDialogsService dialogsService)
     : base(dialogsService)
 {
 }
Beispiel #10
0
 public OrderViewModel(IAppDialogsService dialogsService)
     : base(dialogsService)
 {
 }
Beispiel #11
0
 public StorageViewModel(IAppDialogsService appDialogsService)
 {
     this.appDialogsService = appDialogsService;
 }
 public WarehouseAndStationViewModel(IAppDialogsService dialogsService)
     : base(dialogsService)
 {
 }
 public ContainerViewModel(IAppDialogsService dialogsService)
     : base(dialogsService)
 {
 }
Beispiel #14
0
 protected BaseOrderViewModel(IAppDialogsService dialogsService)
     : base(dialogsService)
 {
 }
Beispiel #15
0
 public PaletteViewModel(IAppDialogsService dialogsService)
     : base(dialogsService)
 {
 }
 protected BaseProductViewModel(IAppDialogsService dialogsService)
     : base(dialogsService)
 {
 }
 public LocationViewModel(IAppDialogsService dialogsService)
     : base(dialogsService)
 {
 }
 public AppGlobalExceptionHandler(IAppDialogsService appDialogsService, ILoggerService loggerService)
 {
     this.appDialogsService = appDialogsService;
     this.loggerService     = loggerService;
 }
Beispiel #19
0
 public ProductViewModel(IAppDialogsService dialogsService)
     : base(dialogsService)
 {
 }