public IndexViewModel(Index index, IDatabase database, IRavenScreen parent) { _index = index; Database = database; ParentRavenScreen = parent; DisplayName = "Edit Index"; CompositionInitializer.SatisfyImports(this); }
public void Activate(IRavenScreen screen) { if (_currentPlugins != null) { foreach (var plugin in _currentPlugins) { plugin.IsActive = plugin.RelatedScreen.GetType() == screen.GetType(); } } }
public ChangeActiveScreen(IRavenScreen screen) { this.ActiveScreen = screen; }
public OpenNewScreen(IRavenScreen screen) { this.NewScreen = screen; }
public ReplaceActiveScreen(IRavenScreen screen) { this.NewScreen = screen; }