Ejemplo n.º 1
0
 public void restoreSavedViewLayout(StoredViewCollection storedViews, AnomalousMvcContext context)
 {
     foreach (View view in storedViews.Views)
     {
         requestOpen(view, context);
     }
 }
Ejemplo n.º 2
0
        public StoredViewCollection generateSavedViewLayout()
        {
            StoredViewCollection storedViews = new StoredViewCollection();

            foreach (var panel in openPanels)
            {
                if (panel.Current != null)
                {
                    storedViews.addView(panel.Current.View);
                }
            }
            return(storedViews);
        }
Ejemplo n.º 3
0
        public void restoreViewLayout(String name)
        {
            StoredViewCollection storedViews = modelMemory.get <StoredViewCollection>(name);

            if (storedViews != null)
            {
                core.restoreSavedViewLayout(storedViews, this);
            }
            else
            {
                Log.Warning("Could not restore a StoredViewModel named {0}. It cannot be found.", name);
            }
        }
Ejemplo n.º 4
0
 internal void restoreSavedViewLayout(StoredViewCollection storedViews, AnomalousMvcContext context)
 {
     viewHostManager.restoreSavedViewLayout(storedViews, context);
     processViewChanges();
 }
Ejemplo n.º 5
0
        public void saveViewLayout(String name)
        {
            StoredViewCollection storedViews = core.generateSavedViewLayout();

            modelMemory.add(name, storedViews);
        }