private void mnuAddPair_Click(object sender, RoutedEventArgs e)
        {
            PortConfigWindow w = new PortConfigWindow();

            if (w.ShowDialog() ?? false)
            {
                if (Com0comSetup.CreatePortPair(w.Result.PortA))
                {
                    RefreshPortPairs();
                }
                else
                {
                    MessageBox.Show("Failed to create pair - do you have admin?");
                }
            }
        }
 private void mnuAddPair_Click(object sender, RoutedEventArgs e)
 {
     PortConfigWindow w = new PortConfigWindow();
     if (w.ShowDialog() ?? false)
     {
         if (Com0comSetup.CreatePortPair(w.Result.PortA))
         {
             RefreshPortPairs();
         }
         else
         {
             MessageBox.Show("Failed to create pair - do you have admin?");
         }
     }
 }