コード例 #1
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;
 }
コード例 #2
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();
        }
コード例 #3
0
        public ShellWindow(SingleInstanceManager singleInstanceManager, ShellViewModel shellViewModel, IAppEvents appEvents, IAppSettingsService appSettingsService)
        {
            DataContext = shellViewModel;
            InitializeComponent();

            singleInstanceManager.OnNewInstance += SingleInstanceManager_OnNewInstance;
            appEvents.OnDragDropModeChanged     += AppEvents_OnDragDropModeChanged;

            dragDropHelper = new DragDropHelper(tabControl, new List <DragDropPair>
            {
                new DragDropPair(typeof(ListViewItem)),
                new DragDropPair(typeof(ListViewItem), typeof(TabItem)),
                new DragDropPair(typeof(ListViewItem), typeof(ListView)),
                new DragDropPair(typeof(TabItem)),
                new DragDropPair(typeof(TabItem), typeof(TabPanel))
            });

            fileDragDropHelper = new FileDragDropHelper(tabControl, new List <Type>
            {
                typeof(ListViewItem),
                typeof(TabItem)
            }, new List <Type>
            {
                typeof(TabControl)
            });
            AppEvents_OnDragDropModeChanged(appSettingsService.DragDropMode);

            KeyDownHandlerEnabled = true;
        }
コード例 #4
0
 public AdminPanelGameControl(IAppEvents appEvents)
 {
     _appEvents = appEvents;
 }
コード例 #5
0
 public HomeController(ISalesService service, IAppEvents events)
 {
     _service = service;
     _events = events;
 }