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(); }
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); }