/** * Intercept the CheckClick event, and save the plot bit into * the MoteTable whenever a user toggles the checkbox associated * with a node. * * @author Martin Turon * @version 2004/4/21 mturon Initial version */ private void NodeList_CheckClick(object sender, AxCTLISTLib._DctListEvents_CheckClickEvent e) { MoteInfo moteInfo = // grab clicked node (MoteInfo)theMoteTable.Instance.GetByIndex(e.nIndex); if (e.nValue == 1) // if box checked { moteInfo.m_flags |= MoteFlags.MF_PLOT; // set plot bit } else { moteInfo.m_flags &= ~MoteFlags.MF_PLOT; // clear plot bit } }
private void NodeList1_CheckClick(object sender, AxCTLISTLib._DctListEvents_CheckClickEvent e) { this.ChartPanel5.ChartUpdate(0); this.ChartPanel5.ChartUpdate(1); this.ChartPanel5.ChartUpdate(2); this.ChartPanel5.BuildLegend(); this.ChartPanel5.Refresh(); }