コード例 #1
0
        public frmReaderRunning(string _reader_name, frmStartReader frmReader)
        {
            InitializeComponent();
            this.__zigbee_name = _reader_name;
            this.__frmReader   = frmReader;
            this.Text          = "节点" + this.__zigbee_name;
            this.Shown        += new EventHandler(frmReaderRunning_Shown);
            this.FormClosing  += new FormClosingEventHandler(frmReaderRunning_FormClosing);

            comport.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);
        }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: ssor/ZigbeeControler
        private void 打开读写器SToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmStartReader frm = new frmStartReader();

            frm.ShowDialog();
            //CommandProtocol cp = new CommandProtocol("open_reader2300", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), "inventory");
            ////CommandProtocol cp = new CommandProtocol("open_rmu900", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), "inventory");
            //string jsonString = fastJSON.JSON.Instance.ToJSON(cp);
            //HttpWebConnect helper = new HttpWebConnect();
            //helper.RequestCompleted += new deleGetRequestObject(helper_RequestCompleted_addCommand);
            //string url = RestUrl.addCommand;
            //helper.TryPostData(url, jsonString);
        }
コード例 #3
0
        public frmReaderRunning(string _reader_name, frmStartReader frmReader)
        {
            InitializeComponent();
            this.__reader_name = _reader_name;
            this.__frmReader   = frmReader;
            this.Text          = "阅读器" + this.__reader_name;
            this.Shown        += new EventHandler(frmReaderRunning_Shown);
            this.FormClosing  += new FormClosingEventHandler(frmReaderRunning_FormClosing);

            __reader2300Timer          = new Timer();
            __reader2300Timer.Interval = 500;
            __reader2300Timer.Tick    += new EventHandler(_timer_get2300Tag);

            __dtTagTemp.Columns.Add("tag", typeof(string));
            __dtTagTemp.Columns.Add("time", typeof(long));
        }