private void frmMain_Load(object sender, EventArgs e) { if (!File.Exists(Program.ConfigName)) { MessageBox.Show(string.Format("Unable to locate configuration file '{0}'. \nPlease contact your server administrator.", Program.ConfigName), Program.Name, MessageBoxButtons.OK, MessageBoxIcon.Error); Application.Exit(); } this.Text = Program.Name; this.LoadConfig(); if (Program.MaskIP) { NetworkUtilities.MaskIP(Program.MaskedIP); } this.Listen(); }