private void TreeView_Loaded(object sender, RoutedEventArgs e) { m_clientapi = new ClientAPI(); m_clientapi.SetRootServer(RootServerUrl); m_clientapi.SetAuthHostAddress(AuthServerUrl); m_clientapi.ConfigClient(); m_DBTableInfos = m_clientapi.GetTableInfos(LoginToken); m_EskimoDbTree.Items.Clear(); foreach (KeyValuePair<string, List<string>> m_kvps in m_DBTableInfos) { TreeViewItem m_Level1Item = new TreeViewItem(); m_Level1Item.Header = m_kvps.Key; foreach (string m_Value in m_kvps.Value) { TreeViewItem m_Level2Item = new TreeViewItem(); m_Level2Item.Header = m_Value; m_Level1Item.Items.Add(m_Level2Item); } m_EskimoDbTree.Items.Add(m_Level1Item); } }