static void Main(string[] args) { Console.Title = "L.O.G. Multiplayer - MasterServer"; Log.HandleLog(LOGMessageTypes.Info, "Press ESC to close."); Log.HandleLog(LOGMessageTypes.Info, "MasterServer started at", DateTime.Now.ToString("HH:mm:ss") + "."); Log.HandleEmptyMessage(); network = new Network(); }
private void Main_Load(object sender, EventArgs e) { this.m_loadingServersWorker.DoWork += m_loadingServersWorker_DoWork; this.m_KSPDirectory = Application.StartupPath; if (Properties.Settings.Default.UpgradeRequired == true) // It is in settings. { Properties.Settings.Default.Upgrade(); Properties.Settings.Default.UpgradeRequired = false; Properties.Settings.Default.Save(); } this.m_userNameTextBox.Text = Properties.Settings.Default.Username; this.m_network = new Network(); this.m_network.RequestServersList(); this.m_network.CalculatePing(); this.m_loadingServersWorker.RunWorkerAsync(); }