Пример #1
0
 private void update_ListBox()
 {
     lbNames.Items.Clear();
     if (entryList.root == null)
     {
         return;
     }
     foreach (string entry in entryList.getAllNames(entryList.root))
     {
         lbNames.Items.Add(entry);
     }
 }
Пример #2
0
 public MainWindow()
 {
     InitializeComponent();
     AVLoader.initDB();
     entryList = AVLoader.loadEntries();
     if (entryList.root != null)
     {
         foreach (string entry in entryList.getAllNames(entryList.root))
         {
             lbNames.Items.Add(entry);
         }
     }
 }