Exemple #1
0
        private void Lb_ServerList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ServerDialog serverDialog = new ServerDialog(Lb_ServerList.SelectedIndex);

            if (serverDialog.ShowDialog(this) == DialogResult.OK)
            {
                UpdateList();
                CheckButtons();
            }
            serverDialog.Dispose();
        }
Exemple #2
0
 private void Btn_EditServer_Click(object sender, EventArgs e)
 {
     if (Lb_ServerList.SelectedIndex >= 0)
     {
         ServerDialog serverDialog = new ServerDialog(Lb_ServerList.SelectedIndex);
         if (serverDialog.ShowDialog() == DialogResult.OK)
         {
             UpdateList();
             CheckButtons();
         }
         serverDialog.Dispose();
     }
 }
Exemple #3
0
 private void Btn_EditServer_Click(object sender, EventArgs e)
 {
     if (Lb_ServerList.SelectedIndex >= 0)
     {
         ServerDialog serverDialog = new ServerDialog(Lb_ServerList.SelectedIndex);
         if (serverDialog.ShowDialog() == DialogResult.OK)
         {
             UpdateList();
             CheckButtons();
         }
         serverDialog.Dispose();
         
     }
 }
Exemple #4
0
 private void Btn_AddServer_Click(object sender, EventArgs e)
 {
     ServerDialog serverDialog = new ServerDialog();
     if (serverDialog.ShowDialog() == DialogResult.OK)
     {
         UpdateList();
         CheckButtons();
         if (Settings.Instance.SelectedServer == -1)
         {
             Settings.Instance.SelectedServer = 0;
         }
     }
     serverDialog.Dispose();
 }
Exemple #5
0
        private void Btn_AddServer_Click(object sender, EventArgs e)
        {
            ServerDialog serverDialog = new ServerDialog();

            if (serverDialog.ShowDialog() == DialogResult.OK)
            {
                UpdateList();
                CheckButtons();
                if (Settings.Instance.SelectedServer == -1)
                {
                    Settings.Instance.SelectedServer = 0;
                }
            }
            serverDialog.Dispose();
        }
Exemple #6
0
 private void CheckForServer()
 {
     if (Settings.Instance.SelectedServer < 0)
     {
         ServerDialog serverDialog = new ServerDialog(true);
         DialogResult serverResult = serverDialog.ShowDialog();
         if (serverResult == DialogResult.OK)
         {
             Settings.Instance.SelectedServer = 0;
             Settings.Instance.SaveSettings();
         }
         else
         {
             Application.Exit();
         }
         serverDialog.Dispose();
     }
 }
Exemple #7
0
 private void Lb_ServerList_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     ServerDialog serverDialog = new ServerDialog(Lb_ServerList.SelectedIndex);
     if (serverDialog.ShowDialog(this) == DialogResult.OK)
     {
         UpdateList();
         CheckButtons();
     }
     serverDialog.Dispose();
 }
Exemple #8
0
 private void CheckForServer()
 {
     if (Settings.Instance.SelectedServer < 0)
     {
         ServerDialog serverDialog = new ServerDialog(true);
         DialogResult serverResult = serverDialog.ShowDialog();
         if (serverResult == DialogResult.OK)
         {
             Settings.Instance.SelectedServer = 0;
             Settings.Instance.SaveSettings();
         }
         else
         {
             Application.Exit();
         }
         serverDialog.Dispose();
     }
 }