示例#1
0
 //Initialize values
 private void Initialize()
 {
     connectionData = new DBConnectData();
     if (!String.IsNullOrEmpty(connectionData.user))
     {
         MakeNewConnection();
     }
 }
示例#2
0
 //Initialize values
 private void Initialize()
 {
     connectionData = new DBConnectData();
     if (!String.IsNullOrEmpty(connectionData.user))
     {
         MakeNewConnection();
     }
 }
示例#3
0
 //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();
     }
 }