void RegisterServices() { var notificationService = new NotificationService(); var sharedDataService = new SharedDataService(); DependencyContainer.RegisterSingleton <NotificationService>(notificationService); DependencyContainer.RegisterSingleton <SharedDataService>(sharedDataService); }
public DetailViewTestControlViewModel(SharedDataService sharedDataService) { this.sharedDataService = sharedDataService; this.sharedDataService.TestModelList.AddWeakEventHandler(ITrackedList_CollectionChanged); UpdateAll(); }
public TestMenuControlViewModel(SharedDataService sharedDataService) { this.sharedDataService = sharedDataService; this.PopulateCommand = new DelegateCommand(p => PopulateAction()); }
public DataGridTestControlViewModel(SharedDataService sharedDataService) { this.sharedDataService = sharedDataService; this.TestDataGridViewModel = new TestDataGridViewModel(this.sharedDataService.TestModelList); }
public override async void Execute(object parameter) { await SharedDataService.OpenModuleAndSetData <TestingViewModel>(ViewModel); }