Exemplo n.º 1
0
 private void channelRenamingMenu_Click(object sender, RoutedEventArgs e)
 {
     if (_radarInfo != null && radarChannelListView.SelectedIndex >= 0)
     {
         int index = radarChannelListView.SelectedIndex;
         ModifyValueClient client = new ModifyValueClient("通道名称修改", _radarInfo.RadarChannelInfos[index].Name, "通道名称:");
         if (client.ShowDialog().Value)
         {
             updateChannelName(client.Heading);
         }
     }
 }
Exemplo n.º 2
0
 private void channelRePortMenu_Click(object sender, RoutedEventArgs e)
 {
     if (_radarInfo != null && radarChannelListView.SelectedIndex >= 0)
     {
         int index = radarChannelListView.SelectedIndex;
         ModifyValueClient client = new ModifyValueClient("输出端口修改", _radarInfo.RadarChannelInfos[index].LegacyPort.ToString(), "输出端口:");
         if (client.ShowDialog().Value)
         {
             int port;
             if (int.TryParse(client.Heading, out port))
             {
                 updateChannelPort(port);
             }
         }
     }
 }