示例#1
0
        public void ShowItem(string name)
        {
            LadderTabItem tabItem = GetTabByName(name);

            if (tabItem == null)
            {
                var routine = CurrentProject.GetRoutineByName(name);
                if (routine != null)
                {
                    tabItem = new LadderTabItem(routine, Scale);
                    SetCurrentItem(tabItem);
                }
            }
            else
            {
                SetCurrentItem(tabItem);
            }
        }