/// <summary>
        /// Constructor
        /// </summary>
        /// <param name="dispatcher">呼び出し元スレッド</param>
        /// <param name="appendMessageDelegate">メッセージ受信完了デリゲート</param>
        public NxtLogReceiver(Dispatcher dispatcher, AppendMessegeDelegate appendMessageDelegate)
        {
            this.dispatcher = dispatcher;
            this.appendMessageDelegate = appendMessageDelegate;

            // Port Controlを初期化
            this.Port = new PortControl();
            // データ受信イベントハンドラ
            this.Port.DataReceived += new SerialDataReceivedEventHandler(Port_DataReceived);

            // NXT Log Creatorを生成
            logCreator = new NxtLogCreator(appendMessageDelegate);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="dispatcher">呼び出し元スレッド</param>
        /// <param name="appendMessageDelegate">メッセージ受信完了デリゲート</param>
        public NxtLogReceiver(Dispatcher dispatcher, AppendMessegeDelegate appendMessageDelegate)
        {
            this.dispatcher            = dispatcher;
            this.appendMessageDelegate = appendMessageDelegate;

            // Port Controlを初期化
            this.Port = new PortControl();
            // データ受信イベントハンドラ
            this.Port.DataReceived += new SerialDataReceivedEventHandler(Port_DataReceived);

            // NXT Log Creatorを生成
            logCreator = new NxtLogCreator(appendMessageDelegate);
        }