public FRAME_PAIR Clone() { FRAME_PAIR copy = new FRAME_PAIR(); copy.bmp = this.bmp; // use the same reference, do not copy the bmp; copy.jpeg = this.jpeg; // use the same reference, do not copy the bmp; copy.m_state = this.m_state; copy.portPairIndex = this.portPairIndex; copy.serialNumber = this.serialNumber; copy._S2255DeviceIndex = this._S2255DeviceIndex; return(copy); }
void HandleNewFramePairs(FRAME_PAIR fp) { if (busy) return; busy = true; ConvertBmp(fp.portPairIndex, (Bitmap)fp.bmp); DisplayJpeg(fp.portPairIndex, fp.jpeg); busy = false; }
public FRAME_PAIR Clone() { FRAME_PAIR copy = new FRAME_PAIR(); copy.bmp = this.bmp;// use the same reference, do not copy the bmp; copy.jpeg = this.jpeg;// use the same reference, do not copy the bmp; copy.m_state = this.m_state; copy.portPairIndex = this.portPairIndex; copy.serialNumber = this.serialNumber; copy._S2255DeviceIndex = this._S2255DeviceIndex; return (copy); }