Esempio n. 1
0
        public static void LoadSettings()
        {
            RegistryKey key = Registry.CurrentUser.OpenSubKey("Alteration");

            XDKName        = key.GetValue("XDKName").ToString();
            ShowInvisibles = bool.Parse(key.GetValue("ShowInvisibles").ToString());
            Last_Grid_View = (LastGridView)byte.Parse(key.GetValue("Last_Grid_View").ToString());
            key.Close();
        }
Esempio n. 2
0
 public static bool SettingsExist()
 {
     try
     {
         RegistryKey key = Registry.CurrentUser.OpenSubKey("Alteration");
         XDKName        = key.GetValue("XDKName").ToString();
         ShowInvisibles = bool.Parse(key.GetValue("ShowInvisibles").ToString());
         Last_Grid_View = (LastGridView)byte.Parse(key.GetValue("Last_Grid_View").ToString());
         key.Close();
     }
     catch
     {
         return(false);
     }
     return(true);
 }