/// <summary> /// 初始化 /// </summary> public void Init() { ServerIP = Resources.Instance.SERVER_ADDRESS; SelectedLang = AllLang.Where(x => int.Parse(x.Value.ToString()) == Res.Instance.CurrentLangIndex).FirstOrDefault(); SelectedMode = AllMode[(int)Theme.Instance.CurrentTheme]; }
/// <summary> /// 初始化 /// </summary> public void Init() { SelectedLang = AllLang.Where(x => int.Parse(x.Value.ToString()) == Res.Instance.CurrentLangIndex).FirstOrDefault(); _isInit = true; }