private static bool LoadData() { try { if (File.Exists(filePath)) { using (FileStream fileWrite = new FileStream(filePath, FileMode.Open)) { byte[] bytes = new byte[fileWrite.Length]; fileWrite.Read(bytes, 0, bytes.Length); ConfigManage.Data = SerializableHelper.DeserializeObject <Config>(bytes); return(true); } } } catch (Exception ex) { LogHelper.WriteLog(ex.Message, EnumLogLevel.Error); } return(false); }