Ejemplo n.º 1
0
        public CurveMonitor(int tunnelId, string tunnelName, UnderMessageWindow mainW)
        {
            InitializeComponent();
            this.tunnelId = tunnelId;
            mainWin       = mainW;
            Text         += "-" + tunnelName;

            // 清空datagridview
            _dgvData.Rows.Clear();
            // 清空曲线1的fastline
            tChartM.Series[0].Clear();
            // 清空曲线2的fastline
            tChartT2.Series[0].Clear();
            // 清空曲线3的fastline
            tChartN.Series[0].Clear();

            // 根据巷道编号获取探头信息
            Object[] probes = Probe.FindAllByTunnelId(this.tunnelId);

            cbxSensors.Items.AddRange(probes);

            cbxSensors.DisplayMember = "ProbeName";
            cbxSensors.ValueMember   = "ProbeId";

            cbxSensors.SelectedIndex = -1;

            // 获取T2传感器的Id
            _T2Id = Probe.GetT2Id(tunnelId);
        }