Esempio n. 1
0
 private void mnuOK_Click(object sender, EventArgs e)
 {
     this.DialogResult = DialogResult.OK;
     ShellKeyItem sk = new ShellKeyItem(comboBox1.SelectedItem.ToString());
     sk.ShellKeyValue = comboBox1.SelectedItem.ToString();
     sk.save2Reg();
     this.Close();
 }
Esempio n. 2
0
 public List<ShellKeyItem> getShellKeyItems()
 {
     List<ShellKeyItem> keyItems = new List<ShellKeyItem>();
     foreach (string s in _sKeyList)
     {
         ShellKeyItem ski = new ShellKeyItem(s);
         if (existsKey(s))
         {
             //read/set values
             ski.bFromReg = true;
             ski.ShellKeyValue = s.ToUpper();
             ski.@default = readString(s, ""); ;
             ski.Flags = readInt(s, "Flags");
             ski.Icon = readString(s, "Icon");
             ski.@Name = readString(s, "Name");
             ski.ResetCmd = readString(s, "ResetCmd");
             ski.ShellKeyValue = s;
             keyItems.Add(ski);
             System.Diagnostics.Debug.WriteLine(ski.ToString());
         }
     }
     return keyItems;
 }
Esempio n. 3
0
 public List<ShellKeyItem> getAllShellKeys()
 {
     //read all possible shellkeys
     //refreshKeys();
     shellKeyItems.Clear();
     foreach (string s in _sKeyList)
     {
         ShellKeyItem ski = new ShellKeyItem(s);
         if (existsKey(s))
         {
             //read/set values
             ski.bFromReg = true;
             ski.ShellKeyValue = s.ToUpper();
             ski.@default = readString(s, "");
             ski.Flags = readInt(s, "Flags");
             ski.Icon = readString(s, "Icon");
             ski.@Name = readString(s, "Name");
             ski.ResetCmd = readString(s, "ResetCmd");
             ski.ShellKeyValue = s;
             shellKeyItems.Add(ski);
             System.Diagnostics.Debug.WriteLine(ski.ToString());
         }
         else
         {
             ski.bFromReg = false;
             ski.ShellKeyValue = s;
             shellKeyItems.Add(ski);
             ski.ShellKeyValue = s.ToUpper();
         }
     }
     return shellKeyItems;
 }