//private void dgvRTInfo_CellContentClick(object sender, DataGridViewCellEventArgs e)
        //{
        //    if (e.RowIndex >= 0)
        //    {
        //        string strCodeSenderAddress = dgvRTInfo.Rows[e.RowIndex].Cells[0].Value.ToString();
        //        RealTimeMonitorInfo rtmi = new RealTimeMonitorInfo(strCodeSenderAddress);
        //        rtmi.Show();
        //    }
        //}
        #endregion

        #region [ 事件: 单击单元格 跳转到 实时发码器信息窗体 ]
        private void dgvRTInfo_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                string strCodeSenderAddress = dgvRTInfo.Rows[e.RowIndex].Cells[0].Value.ToString();
                RealTimeMonitorInfo rtmi    = new RealTimeMonitorInfo(strCodeSenderAddress);
                rtmi.Show();
            }
        }
Exemple #2
0
        private void pictureBox9_Click(object sender, EventArgs e)
        {
            if (Searcher.FindFormByName("RealTimeMonitorInfo"))
            {
                return;
            }

            ILogger.Write(EnumLogType.OperateLog, strLogPath + DateTime.Now.ToString("yyyy-MM-dd") + ".xml", LoginBLL.user, "打开实时发码器信息菜单");

            RealTimeMonitorInfo rtmi = new RealTimeMonitorInfo("");

            rtmi.Show(((KJ128NInterfaceShow.FrmMain)frmMain).dockPanel1, DockState.Document);
        }