Exemplo n.º 1
0
 private void button5_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex != -1)
     {
         Add_Server add = new Add_Server(Servers.ServerList[listBox1.SelectedIndex]);
         add.ShowDialog();
         if (add.New != null)
         {
             RefreshServer(add.New);
             Servers.Remove(Servers.ServerList[listBox1.SelectedIndex]);
             Servers.Add(add.New);
             Servers.Save();
             MakeList();
         }
     }
     else
     {
         MessageBox.Show("No Server Selected");
     }
 }
Exemplo n.º 2
0
 private void button3_Click(object sender, EventArgs e)
 {
     Add_Server add = new Add_Server();
     add.ShowDialog();
     if (add.New != null)
     {
         RefreshServer(add.New);
         Servers.Add(add.New);
         Servers.Save();
         MakeList();
     }
 }