Example #1
0
 /// <summary>
 /// Raises SettingsPicked()-event and closes the form.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void buttonOk_Click(object sender, EventArgs e)
 {
     ConnectionSettingsEventArgs args = new ConnectionSettingsEventArgs(PortComboBox.Text, IpComboBox.Text);
     SettingsPicked(this, args);
 }
Example #2
0
 /// <summary>
 /// Raises the CreateClient()-method.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="message"></param>
 void SettingsPicked(object sender, ConnectionSettingsEventArgs e)
 {
     ConnectionForm connectionSettings = (ConnectionForm)sender;
     connectionSettings.Dispose();
     CreateClient(new string[] { e.IP, e.Port });
 }