void _cpManager_RemovedCommuniPort(object sender, CommuniPortEventArgs e) { ICommuniPort cp = e.CommuniPort; StationCommuniPortBinder.Unbind(cp, GetHardware()); }
void _cpManager_AddedCommuniPort(object sender, CommuniPortEventArgs e) { StationCommuniPortBinder.Bind(e.CommuniPort, this.GetHardware()); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void ProcessDetermined(ICommuniPort cp) { Hardware hd = this.GetHardware(); StationCommuniPortBinder.Bind(cp, hd); }