Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     System.Net.IPAddress o;
     if (textBox2.TextLength > 0 && textBox3.TextLength > 0 && char.IsNumber(textBox3.Text, 0) && System.Net.IPAddress.TryParse(textBox2.Text, out o))
     {
         System.IO.File.AppendAllLines("servers.list", new string[1] {
             textBox2.Text + ":" + textBox3.Text
         });
         ServerBrowser.refreshStatic();
         this.Close();
     }
 }
 public ServerBrowser()
 {
     instance = this;
     InitializeComponent();
     loadConfiguration();
 }
 public ServerBrowser()
 {
     instance = this;
     InitializeComponent();
     loadConfiguration();
 }