public void ClosedEvent() { TwitterSetting.OnClose(); CodicSettingTab.OnClose(); CharacterSetting.OnClose(); SlackSetting.OnClose(); LauncherSetting.OnClose(); ServiceLocator.Instance.ClearConfigBaseContext(); }
public bool GetBool(string name) { LauncherSetting setting = settingsList.Find(s => s.Name == name); return((setting != null) ? Convert.ToBoolean(setting.Value) : false); }
public int GetInt(string name) { LauncherSetting setting = settingsList.Find(s => s.Name == name); return((setting != null) ? Convert.ToInt32(setting.Value) : 0); }
public string GetString(string name) { LauncherSetting setting = settingsList.Find(s => s.Name == name); return((setting != null) ? setting.Value.ToString() : null); }
internal string GetType(string name) { LauncherSetting setting = settingsList.Find(s => s.Name == name); return((setting != null) ? setting.Type : "e"); }