public Form1() { if (IsLocalhost()) { isLocal = true; } GenerateNationData(); clientToBS = new ClientToBS(); clientToDS = new ClientToDS(); serverForGS = new ServerForGS(); serverForU = new ServerForU(); clientToDS.clientToBS = clientToBS; clientToBS.clientToDS = clientToDS; clientToDS.serverForGS = serverForGS; serverForGS.clientToDS = clientToDS; serverForU.clientToDS = clientToDS; serverForU.clientToBS = clientToBS; clientToDS.serverForU = serverForU; clientToBS.serverForGS = serverForGS; clientToBS.serverForU = serverForU; serverForU.LoadPlrsByNation(); Timer timer1 = new Timer(TimerCallback1, null, 0, 10000); Timer timer2 = new Timer(TimerCallback2, null, 0, 3000); Timer timer3 = new Timer(TimerCallback3, null, 0, 3000); }
public LoginThread(string username, string password, ulong steamID, byte platform, NetConnection connection, UserConnection user, MySqlConnection mySqlConnection, ClientToDS clientToDS, ServerForU serverForU) { this.username = username; this.password = password; this.steamID = steamID; this.platform = platform; this.connection = connection; this.user = user; this.mySqlConnection = mySqlConnection; this.clientToDS = clientToDS; this.serverForU = serverForU; thread = new Thread(new ThreadStart(DoLogin)); }