示例#1
0
 private void SunuculariListele()
 {
     Sunucular = KayitDefteri.KlasorKeyAktifKullanici.OpenSubKey(KayitDefteri.KlasorSunucular, true);
     Sunucular_ListBox.Items.Clear();
     KayitDefteri.GetSubKeyNamesToListBox(Sunucular, Sunucular_ListBox);
     Sunucular.Close();
 }
示例#2
0
        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());
             *  }
             *
             * }
             */
        }