private Server(string login, string password, MainForm form) { //Login = login; //Password = password; Form = form; Logger = new LogWriter(LogPath, LogName); dbWriter = new DBInputOutput.DBWriter(); Strategies = new List <StrategyAbst>(); Collector = new DataCollector(); UpdatePositionTimer = new System.Timers.Timer(UpdatePositionInterval); UpdatePositionTimer.AutoReset = true; UpdatePositionTimer.Elapsed += HandleUpdatePosition; UpdatePositionTimer.Start(); }