예제 #1
0
        public MainWindow()
        {
            m_seletectedIndex_list1 = 0;
            InitializeComponent();

            list_level_2_proxy.init();
            m_list1_itemsource = listView_demoEntries_level1.ItemsSource as list_level_1;
        }
예제 #2
0
        public static void init()
        {
            s_ListDict = new SortedDictionary <string, list_level_2>();
            MainWindow   mWnd = Application.Current.MainWindow as MainWindow;
            list_level_1 ll1  = mWnd.listView_demoEntries_level1.ItemsSource as list_level_1;

            for (int i = 0; i < ll1.Count; ++i)
            {
                list_level_2 ll2 = new list_level_2(ll1[i].Title);
                s_ListDict.Add(ll1[i].Title, ll2);
            }
        }