private void advTreeTrafficEvent_MouseDoubleClick(object sender, MouseEventArgs e) { if (advTreeBehaviourEvent.SelectedNode != null) { FormSingleBehaviourEvnetDetail f = new FormSingleBehaviourEvnetDetail(); f.Init(behaviorEventList); f.ShowResult(advTreeBehaviourEvent.SelectedNode.Tag as BehaviorProperty); f.ShowDialog(); } }
private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { //获取当前的数据 并显示 if (dataGridViewX1.CurrentRow.Tag is BehaviorProperty) { BehaviorProperty item = (BehaviorProperty)dataGridViewX1.CurrentRow.Tag; FormSingleBehaviourEvnetDetail f = new FormSingleBehaviourEvnetDetail(); f.ImageUseURL = true; f.Init(m_EventList); f.ShowResult(item); f.ShowDialog(); } }