예제 #1
0
 /// <summary>
 /// Launches configuration of auto-update servers
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void configureServersButton_Click(object sender, EventArgs e)
 {
     using (MeGUI.core.gui.AutoUpdateServerConfigWindow w = new MeGUI.core.gui.AutoUpdateServerConfigWindow())
     {
         w.ServerList      = internalSettings.AutoUpdateServerLists;
         w.ServerListIndex = cbAutoUpdateServerSubList.SelectedIndex;
         if (w.ShowDialog() == DialogResult.OK)
         {
             internalSettings.AutoUpdateServerLists = w.ServerList;
         }
     }
 }
예제 #2
0
 /// <summary>
 /// Launches configuration of auto-update servers
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void configureServersButton_Click(object sender, EventArgs e)
 {
     using (MeGUI.core.gui.AutoUpdateServerConfigWindow w = new MeGUI.core.gui.AutoUpdateServerConfigWindow())
     {
         w.ServerList = internalSettings.AutoUpdateServerLists;
         w.ServerListIndex = internalSettings.AutoUpdateServerSubList;
         if (w.ShowDialog() == DialogResult.OK)
         {
             internalSettings.AutoUpdateServerLists = w.ServerList;
             internalSettings.AutoUpdateServerSubList = w.ServerListIndex;
         }
     }
 }