try { PatchEdit.MidiOut.writeLongMessage(localPort,localPatch.sysex);
try { localDriver.send(localPatch.sysex);
    void ProgPressed()     {        this.setVisible(false);        if (deviceIDoffset>0) localPatch.sysex[deviceIDoffset]=(byte)(channel-1);        try         {                   PatchEdit.MidiOut.writeLongMessage(localPort,localPatch.sysex);        }catch (Exception e) {ErrorMsg.reportStatus(e);}        return;    }