private void btnConnect_Click(object sender, EventArgs e)
        {
        SerialPort mySerial=new SerialPort(cmbSerial.SelectedItem.ToString());
        myBusPirate=new BusPirate(mySerial);
        myBusPirate.Open();
        myPIC24Program=new PIC24Program(myBusPirate);
        myPIC18Program=new PIC18Program(myBusPirate);
        //myPIC24Program.Open();

        grpSerial.Enabled=false;
        tabBPControls.Enabled=true;
        txtStatus.Clear();
        SetStatusString(String.Format("Connected to {0}!\r\n ============ \r\n",cmbSerial.SelectedItem.ToString()));

        BPInit();
        }
 public PIC18Program(BusPirate busPirate)
     : base(busPirate)
 {
     myBusPirate=busPirate;
 }
 public PICProgrammer(BusPirate BusPirate)
 {
 myBusPirate=BusPirate;
 }
 internal BusPirateRawWire(BusPirate busPirate)
 {
     myBusPirate=busPirate;
 }