public MenuViewModel(AppViewModel app, IServicesAggregator services) { this.services = services; this.app = app; DragDropModes = new DragDropModesViewModel(); DragDropModes.DragDropModeChanged += DragDropModes_DragDropModeChanged; services.AppEvents.OnSettingsChanged += AppEvents_SettingsChanged; }
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); }
public AppViewModel(IServicesAggregator services) { this.services = services; appDragDrop = new AppDragDropViewModel(this); workspaces = new ObservableCollection <WorkspaceViewModel>(); StoragePath = string.Empty; services.AppEvents.OnSettingsChanged += AppEvents_SettingsChanged; }
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(); }
public WorkspaceMenuViewModel(AppViewModel app, IServicesAggregator services) { this.services = services; this.app = app; }
public StartupWindow(IServicesAggregator services) { this.services = services; InitializeComponent(); ShowVersion(); }