Ejemplo n.º 1
0
        public virtual void GoToSubView(int viewID, GTEditorSubView context, object param = null)
        {
            if (AllSubViews == null || AllSubViews.Count == 0)
            {
                Helper.LogError("GTEditorView GoToSubView:Error caused by null subview collection");
                return;
            }
            GTEditorSubView view = null;

            if (AllSubViews.TryGetValue(viewID, out view))
            {
                if (context != null)
                {
                    context.OnInActive(view);
                }
                CurrentActiveView = view;
                LastActiveView    = context;
                CurrentActiveView.OnActive(context, param);
            }
        }