Exemple #1
0
 private void LoadCutChipData(CutChip c)
 {
     ctrs.Add(channelCtrList1);
     ctrs.Add(channelCtrList2);
     ctrs.Add(channelCtrList3);
     ctrs.Add(channelCtrList4);
     ctrs.Add(channelCtrList5);
     ctrs.Add(channelCtrList6);
     ctrs.Add(channelCtrList7);
     ctrs.Add(channelCtrList8);
     ctrs.Add(channelCtrList9);
     ctrs.Add(channelCtrList10);
     for (int i = c.Count; i < 10; i++)//增加模板
     {
         CutChannel ch = new CutChannel();
         ch.Enable = false;
         c.Add(ch);
     }
     for (int i = 0; i < 10; i++)
     {
         ctrs[i].CH = c.CHs[i];
     }
 }
Exemple #2
0
 private void LoadChipDataValue(CutChip ch)
 {
     startCount = ch.Count;
     if (startCount < 2)
     {
         startCount = 2;
     }
     if (ch.Count < channelNum.Items.Count)
     {
         channelNum.SelectedIndex = ch.Count - 1;
     }
     else
     {
         channelNum.SelectedIndex = 3;
     }
     for (int i = ch.Count; i < channelNum.Items.Count; i++)
     {
         CutChannel c = new CutChannel();
         c.Enable = false;
         LoadChannelDataValue(c, false);
         ch.Add(c);
     }
     LoadChannelDataValue(ch[0]);
 }