public ImportedFileNavigationSearchScreenViewModel(IViewModelDependencies appCtx, Func<IZetboxContext> ctxFactory, IZetboxContext dataCtx, ViewModel parent, NavigationScreen screen) : base(appCtx, dataCtx, ctxFactory, parent, screen) { _ctxFactory = ctxFactory; base.Type = typeof(ImportedFile).GetObjectClass(FrozenContext); }
public NavigationReportScreenViewModel(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, NavigationScreen screen, IFileOpener fileOpener, ITempFileService tmpService) : base(appCtx, dataCtx, parent, screen) { _appCtx = appCtx; _fileOpener = fileOpener; _tmpService = tmpService; }
public NavigationReportScreenViewModel(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, NavigationScreen screen, IFileOpener fileOpener, ITempFileService tmpService) : base(appCtx, dataCtx, parent, screen) { _appCtx = appCtx; _fileOpener = fileOpener; _tmpService = tmpService; }
public NavigatorViewModel(IViewModelDependencies dependencies, IZetboxContext dataCtx, ViewModel parent, NavigationScreen root) : base(dependencies, dataCtx, parent) { _current = _root = NavigationEntryViewModel.Fetch(ViewModelFactory, dataCtx, parent, root); _current.Displayer = this; _history = new ObservableCollection<NavigationEntryViewModel>() { _current }; _historyRO = new ReadOnlyObservableCollection<NavigationEntryViewModel>(_history); _location = new ObservableCollection<NavigationEntryViewModel>() { _root }; _locationRO = new ReadOnlyObservableCollection<NavigationEntryViewModel>(_location); }
/* * Author: LS, LM * Notes: Levi wrote the majority of the method, Lucas updated it to include the autosave functionality * Determine which screen to bring to front of PrimaryForm in order to simulate navigation through the app * If the EditDeck screen is currently in front at the time of navigation, then automatically save whichever deck is currently being edited before navigating away */ public static void SetActiveScreen(NavigationScreen ScreenToActivate, int OptionalDeckParameter = 0) { bool isEditFront = PF.IsFrontPanel(EditDeckScreen); if (isEditFront) { EditDeckScreen.SaveCurrentDeck(); } switch (ScreenToActivate) { case NavigationScreen.DeckList: DeckListScreen.ResetSearch(); DeckListScreen.LoadDeckPanels(); DeckListScreen.BringToFront(); NavMenuBar.HighlightDeckListButton(); break; case NavigationScreen.AddDeck: AddDeckScreen.BringToFront(); NavMenuBar.HighlightAddDeckButton(); break; case NavigationScreen.EditDeck: EditDeckScreen.SetDeckToEdit(OptionalDeckParameter); EditDeckScreen.BringToFront(); break; case NavigationScreen.StudyDeck: StudyDeckScreen.BringToFront(); StudyDeckScreen.SetDeckToStudy(OptionalDeckParameter); break; case NavigationScreen.Help: HelpScreen.BringToFront(); NavMenuBar.HighlightHelpButton(); break; case NavigationScreen.Share: ShareScreen.SetDeckList(); ShareScreen.BringToFront(); NavMenuBar.HighlightShareButton(); break; } }
public ReportScreenViewModel(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, NavigationScreen screen, IFileOpener fileOpener, ITempFileService tmpService) : base(appCtx, dataCtx, parent, screen, fileOpener, tmpService) { }
public NavigationSearchScreenViewModel(IViewModelDependencies dependencies, IZetboxContext dataCtx, Func<IZetboxContext> ctxFactory, ViewModel parent, NavigationScreen screen) : base(dependencies, dataCtx, parent, screen) { _ctxFactory = ctxFactory; }
public InstanceListTestViewModel(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, NavigationScreen screen) : base(appCtx, dataCtx, parent, screen) { }
public ReportScreenViewModel(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, NavigationScreen screen, IFileOpener fileOpener, ITempFileService tmpService) : base(appCtx, dataCtx, parent, screen, fileOpener, tmpService) { }
public NavigationTreeScreenViewModel(IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent, NavigationScreen screen) : base(appCtx, dataCtx, parent, screen) { }
public NavigatorViewModel(IViewModelDependencies dependencies, IZetboxContext dataCtx, ViewModel parent, NavigationScreen root) : base(dependencies, dataCtx, parent) { _rootMdl = root; }
public TestAppNavigationScreenViewModel(IViewModelDependencies appCtx, Func<IZetboxContext> ctxFactory, IZetboxContext dataCtx, ViewModel parent, NavigationScreen screen) : base(appCtx, dataCtx, parent, screen) { _ctxFactory = ctxFactory; }
public NavigationSearchScreenViewModel(IViewModelDependencies dependencies, IZetboxContext dataCtx, Func <IZetboxContext> ctxFactory, ViewModel parent, NavigationScreen screen) : base(dependencies, dataCtx, parent, screen) { _ctxFactory = ctxFactory; }
public NavigatorViewModel(IViewModelDependencies dependencies, IZetboxContext dataCtx, ViewModel parent, NavigationScreen root) : base(dependencies, dataCtx, parent) { _current = _root = NavigationEntryViewModel.Fetch(ViewModelFactory, dataCtx, parent, root); _current.Displayer = this; _history = new ObservableCollection <NavigationEntryViewModel>() { _current }; _historyRO = new ReadOnlyObservableCollection <NavigationEntryViewModel>(_history); _location = new ObservableCollection <NavigationEntryViewModel>() { _root }; _locationRO = new ReadOnlyObservableCollection <NavigationEntryViewModel>(_location); }
public ImportedFileNavigationSearchScreenViewModel(IViewModelDependencies appCtx, Func <IZetboxContext> ctxFactory, IZetboxContext dataCtx, ViewModel parent, NavigationScreen screen) : base(appCtx, dataCtx, ctxFactory, parent, screen) { _ctxFactory = ctxFactory; base.Type = typeof(ImportedFile).GetObjectClass(FrozenContext); }