Ejemplo n.º 1
0
        private void DetectorSelectBox3_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (detectorBucky3)
            {
            case BuckyType.WSD:
                wsd.EjectDetector();
                break;

            case BuckyType.TBL:
                tbl.EjectDetector();
                break;

            default:
                break;
            }
            if
            (this.DetectorSelectBox3.SelectedIndex == 0)
            {
                wsd.InsertDetector((byte)detectorId3);
                detectorBucky3 = BuckyType.WSD;
            }
            if (this.DetectorSelectBox3.SelectedIndex == 1)
            {
                tbl.InsertDetector((byte)detectorId3);
                detectorBucky3 = BuckyType.TBL;
            }
            if (this.DetectorSelectBox3.SelectedIndex == 2)
            {
                detectorBucky3 = BuckyType.None;
            }
        }
Ejemplo n.º 2
0
 private void DetectorSelectBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     switch (detectorBucky1)
     {
         case BuckyType.WSD:
             wsd.EjectDetector();
             break;
         case BuckyType.TBL:
             tbl.EjectDetector();
             break;
         default:
             break;
     }
     if
      (this.DetectorSelectBox1.SelectedIndex == 0)
     {
         wsd.InsertDetector((byte)detectorId1);
         detectorBucky1 = BuckyType.WSD;
     }
     if (this.DetectorSelectBox1.SelectedIndex == 1)
     {
         tbl.InsertDetector((byte)detectorId1);
         detectorBucky1 = BuckyType.TBL;
     }
     if (this.DetectorSelectBox1.SelectedIndex == 2)
     {
         detectorBucky1 = BuckyType.None;
     }
 }