Ejemplo n.º 1
0
 private Server(string login, string password, MainForm form)
 {
     //Login = login;
     //Password = password;
     Form         = form;
     Logger       = new LogWriter(LogPath, LogName);
     dbWriter     = new DBInputOutput.DBWriter();
     dbReader     = new DBInputOutput.DBReader();
     Strategies   = new List <StrategyAbst>();
     Collector    = new DataCollector();
     WasConnected = false;
     dbWriter.InsertSts(ServerTime.GetRealTime(), "Stocks", "Working");
 }
Ejemplo n.º 2
0
 private void PingTimer_Elapsed(object sender, ElapsedEventArgs e)
 {
     dbWriter.InsertSts(ServerTime.GetRealTime(), "Stocks", "Working");
 }