Example #1
0
        public MenuViewModel(AppViewModel app, IServicesAggregator services)
        {
            this.services = services;
            this.app      = app;

            DragDropModes = new DragDropModesViewModel();
            DragDropModes.DragDropModeChanged    += DragDropModes_DragDropModeChanged;
            services.AppEvents.OnSettingsChanged += AppEvents_SettingsChanged;
        }
Example #2
0
        public ShellViewModel(IServicesAggregator services)
        {
            this.services = services;

            App           = new AppViewModel(services);
            Menu          = new MenuViewModel(App, services);
            BarcodeMenu   = new BarcodeMenuViewModel(App, services);
            WorkspaceMenu = new WorkspaceMenuViewModel(App, services);
        }
Example #3
0
        public AppViewModel(IServicesAggregator services)
        {
            this.services = services;

            appDragDrop = new AppDragDropViewModel(this);
            workspaces  = new ObservableCollection <WorkspaceViewModel>();
            StoragePath = string.Empty;

            services.AppEvents.OnSettingsChanged += AppEvents_SettingsChanged;
        }
Example #4
0
        public QuickGeneratorViewModel(IServicesAggregator services, AppViewModel appViewModel)
        {
            this.services     = services;
            this.appViewModel = appViewModel;

            services.AppEvents.OnQuickBarcodeUpdate += AppEvents_QuickBarcodeUpdate;

            generationData = new GenerationDataViewModel(services.AppDialogsService, services.AppWindowsService, services.GeneratorService,
                                                         services.SysService, services.AppSettingsService)
            {
                ParentViewModel = this
            };
            LoadSettings();
            LoadQuickBarcodes();
        }
Example #5
0
 public WorkspaceMenuViewModel(AppViewModel app, IServicesAggregator services)
 {
     this.services = services;
     this.app      = app;
 }
 public StartupWindow(IServicesAggregator services)
 {
     this.services = services;
     InitializeComponent();
     ShowVersion();
 }