Beispiel #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public SerialCommandProcessor(HexImage hexImage, TargetInfo targetInfo, Button openCloseButton)
        {
            mHexImage        = hexImage;
            mTargetInfo      = targetInfo;
            mOpenCloseButton = openCloseButton;

            // Add Event Handler
            mSerialPort.DataReceived += new SerialDataReceivedEventHandler(SerialPort_DataReceived);
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public DisplayManager(RichTextBox rtb, DataGridView dgv, HexImage hi, SerialCommandProcessor scp)
        {
            mTextDisplayBox = rtb;
            mGridDisplayBox = dgv;
            mHexImage       = hi;
            mSerialCommProc = scp;

            InitGridDisplayBox();
        }