예제 #1
0
        OptimizedScrollView GetScrollViewCreateIfMissing(string name)
        {
            OptimizedScrollView scrollView;

            if (!scrollViewDic.TryGetValue(name, out scrollView))
            {
                scrollView = new OptimizedScrollView(name, this, LineHeight, CellHeight);
                scrollViewDic.Add(name, scrollView);
            }
            return(scrollView);
        }
예제 #2
0
        OptimizedScrollView GetScrollViewCreateIfMissing(string name)
        {
            OptimizedScrollView scrollView;

            if (!scrollViewDic.TryGetValue(name, out scrollView))
            {
                scrollView = new OptimizedScrollView(name, this, LineHeight, CellHeight);
                bool foldOut;
                if (TryGetFoldOut(name, out foldOut))
                {
                    scrollView.Foldout = foldOut;
                }
                scrollViewDic.Add(name, scrollView);
            }
            return(scrollView);
        }