public void SelectTab(string reference) { PortalDefinition pd = PortalDefinition.Load(); CurrentReference = reference; if (reference == "") // Root Node { //Hidden TemplateEdit and TabEdit when load first time TabCtrl.Visible = false; TabListCtrl.Visible = true; //Load data to TabList CurrentParentReference = ""; TabListCtrl.LoadData(pd); } else { //Hidden Template control when edit Tab TemplateCtrl.Visible = false; TemplateListCtrl.Visible = false; PortalDefinition.Tab t = pd.GetTab(reference); CurrentParentReference = t.parent != null ? t.parent.reference : ""; TabListCtrl.LoadData(t); TabCtrl.Visible = true; TabCtrl.LoadData(reference); } }
// public void SelectTab(string reference) override public void SelectTab(string reference) { PortalDefinition pd = PortalDefinition.Load(); CurrentReference = reference; if (reference == "") // Root Node { CurrentParentReference = ""; TabCtrl.Visible = false; TabListCtrl.LoadData(pd); } else { PortalDefinition.Tab t = pd.GetTab(reference); CurrentParentReference = t.parent != null ? t.parent.reference : ""; TabListCtrl.LoadData(t); TabCtrl.Visible = true; TabCtrl.LoadData(t); } }