private void SunuculariListele() { Sunucular = KayitDefteri.KlasorKeyAktifKullanici.OpenSubKey(KayitDefteri.KlasorSunucular, true); Sunucular_ListBox.Items.Clear(); KayitDefteri.GetSubKeyNamesToListBox(Sunucular, Sunucular_ListBox); Sunucular.Close(); }
private void KullanicilarBtn_Click(object sender, EventArgs e) { RegistryKey Kullanicilar = Registry.CurrentUser.OpenSubKey(KayitDefteri.KlasorAna).OpenSubKey(KayitDefteri.KlasorKullanicilar); KayitDefteri.GetSubKeyNamesToListBox(Kullanicilar, listBox1); /* * using (Kullanicilar) * { * foreach (var SubKeyAdi in Kullanicilar.GetSubKeyNames()) * { * listBox1.Items.Add(SubKeyAdi.ToString()); * } * * } */ }