Esempio n. 1
0
 private void ListenButtonClick(object sender, EventArgs e)
 {
     try
     {
         ServerView view = new ServerView(hostTextBox.Text, (ushort)portField.Value);
     }
     catch (InvalidCastException)
     {
         MessageBox.Show("The port value you entered was either too low or too high.");
     }
 }
Esempio n. 2
0
 private void ListenButtonClick(object sender, EventArgs e)
 {
     try
     {
         ServerView view = new ServerView(hostTextBox.Text, (ushort)portField.Value);
     }
     catch (InvalidCastException)
     {
         MessageBox.Show("The port value you entered was either too low or too high.");
     }
 }