Beispiel #1
0
 private void btnDialogOk_Click(object sender, RoutedEventArgs e)
 {
     if (commPort.Text != "")
     {
         _network = new Network(null);
         _network.Update(providers.Content.ToString(), commPort.Text);
         System.Windows.MessageBox.Show("Updated");
         this.DialogResult = true;
        
     }
     else
     {
         MessageBox.Show("please input the port !");
     }
 }