Ejemplo n.º 1
0
 /// <summary>
 /// Main entry form
 /// </summary>
 /// <param name="args"></param>
 public static void startRwisUiMain(string[] args)
 {
     if (jrDebug)
     {
         // Connect to DB Server
         string dbname = ConfigurationManager.AppSettings["MySqlDatabase"];
         string server = ConfigurationManager.AppSettings["MySqlServer"];
         string user = ConfigurationManager.AppSettings["MySqlUser"];
         BasicDBServer svr = MySqlServer.GetMySqlServer(server, dbname, user);
         db = new TimeSeriesDatabase(svr);
         siteCat = db.GetSiteCatalog();
         parCat = db.GetParameterCatalog();
     }
     // Starts the application.
     Application.Run(new rwisForm());
 }