public void restoreSavedViewLayout(StoredViewCollection storedViews, AnomalousMvcContext context) { foreach (View view in storedViews.Views) { requestOpen(view, context); } }
public StoredViewCollection generateSavedViewLayout() { StoredViewCollection storedViews = new StoredViewCollection(); foreach (var panel in openPanels) { if (panel.Current != null) { storedViews.addView(panel.Current.View); } } return(storedViews); }
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); } }
internal void restoreSavedViewLayout(StoredViewCollection storedViews, AnomalousMvcContext context) { viewHostManager.restoreSavedViewLayout(storedViews, context); processViewChanges(); }
public void saveViewLayout(String name) { StoredViewCollection storedViews = core.generateSavedViewLayout(); modelMemory.add(name, storedViews); }