private bool CheckUserData() { bool valid = false; string dir = Path.Combine(Environment.CurrentDirectory, ApplicationData.ConfigPath); string filePath = Path.Combine(dir, "FreeMet.ini"); if (!File.Exists(filePath)) { IniConfig.CreateIni(dir, "FreeMet.ini"); return(false); } ApplicationData.Instance.Token = IniConfig.Read("Token", "Token", "", filePath); int.TryParse(IniConfig.Read("ExpireTime", "ExpireTime", "", filePath), out int expire); ApplicationData.Instance.ExpireTime = expire; return(valid); }