예제 #1
0
        public IndexViewModel(Index index, IDatabase database, IRavenScreen parent)
        {
            _index = index;
            Database = database;

            ParentRavenScreen = parent;
            DisplayName = "Edit Index";
            CompositionInitializer.SatisfyImports(this);
        }
예제 #2
0
 public void Activate(IRavenScreen screen)
 {
     if (_currentPlugins != null)
     {
         foreach (var plugin in _currentPlugins)
         {
             plugin.IsActive = plugin.RelatedScreen.GetType() == screen.GetType();
         }
     }
 }
예제 #3
0
 public ChangeActiveScreen(IRavenScreen screen)
 {
     this.ActiveScreen = screen;
 }
예제 #4
0
 public OpenNewScreen(IRavenScreen screen)
 {
     this.NewScreen = screen;
 }
예제 #5
0
 public ReplaceActiveScreen(IRavenScreen screen)
 {
     this.NewScreen = screen;
 }