Esempio n. 1
0
 public DiskChannel(RecordDisk disk)
 {
     for (int i = 0; i < disk.RecordList.Count; i++)
     {
         RecordFile file = disk.RecordList[i];
         for (int j = 0; j < file.Channels.Count; j++)
         {
             SelectChannel channel = new SelectChannel(disk, j + 1, i + 1);
             channels.Add(channel);
         }
     }
 }
Esempio n. 2
0
 public DiskChannel(RecordDisk disk)
 {
     for (int i = 0; i < disk.RecordList.Count; i++)
     {
         RecordFile file = disk.RecordList[i];
         for (int j = 0; j < file.Channels.Count; j++)
         {
             SelectChannel channel = new SelectChannel(disk, j + 1, i + 1);
             channels.Add(channel);
         }
     }
 }
        private void button1_Click(object sender, EventArgs e)
        {
            IList<SelectChannel> channels = (IList<SelectChannel>)gridControl1.DataSource;

              for (int i = 0; i < channels.Count; i++)
              {
                  if (channels[i].Select)
                  {
                      this.Channel = channels[i];
                      break;
                  }
              }
            this.DialogResult = DialogResult.OK;
        }