Ejemplo n.º 1
0
 private void fillList()
 {
     lbSet.Items.Clear();
     idxList.Clear();
     for (int c = 0; c < _connections.Count; c++)
     {
         if (connectionGroup.contains(c))
         {
             lbSet.Items.Add(_connections[c].name + " - " + connectionGroup.mhzStr(c));
             idxList.Add(c);
         }
     }
 }
Ejemplo n.º 2
0
 public FConnectionGroupItem(List <ConnectionSettings> connections, int connectionId, ConnectionGroup connectionGroup)
 {
     InitializeComponent();
     for (int c = 0; c < connections.Count; c++)
     {
         if (!connectionGroup.contains(c) || c == connectionId)
         {
             cbConnection.Items.Add(connections[c]);
         }
     }
     tbMhz.Text = connectionGroup.mhzStr(connectionId);
     if (connectionId != -1)
     {
         cbConnection.SelectedItem = connections[connectionId];
     }
 }