//Initialize values private void Initialize() { connectionData = new DBConnectData(); if (!String.IsNullOrEmpty(connectionData.user)) { MakeNewConnection(); } }
//Initialize values private void Initialize() { connectionData = new DBConnectData(); if (!String.IsNullOrEmpty(connectionData.user)) { MakeNewConnection(); } }
//Initialize values private void Initialize() { if (System.IO.File.Exists("data/database.json")) { string file = System.IO.File.ReadAllText("data/database.json"); connectionData = Newtonsoft.Json.JsonConvert.DeserializeObject<DBConnectData>(file); MakeNewConnection(); } }