예제 #1
0
파일: Main.cs 프로젝트: WopsS/L.O.G
        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();
        }
예제 #2
0
파일: Main.cs 프로젝트: WopsS/L.O.G
        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();
        }