Пример #1
0
 private void tvParam_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Node.IsSelected)
     {
         if (tvParam.SelectedNode.Level == 0)
         {
             try
             {
                 tvParam.Nodes[e.Node.Index].Nodes.Clear();
                 parameterSet paramSet = new parameterSet(tvParam.Nodes[e.Node.Index].Text, infoDt[index].Str, e.Node.Index);
                 paramSet.setValue    = new DgSetValue(cP.getDgValue);
                 paramSet.FormClosed += new FormClosedEventHandler(callSet);
                 paramSet.ShowDialog();
             }
             catch (Exception ex)
             {
                 ex.ToString();
                 MessageBox.Show(ex.ToString());
                 MessageBox.Show("Please choose a correct parameter !!!");
             }
         }
     }
 }
Пример #2
0
 private void tvParam_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Node.IsSelected)
     {
         if (tvParam.SelectedNode.Level == 0)
         {
             try
             {
                 tvParam.Nodes[e.Node.Index].Nodes.Clear();
                 parameterSet paramSet = new parameterSet(tvParam.Nodes[e.Node.Index].Text, infoDt[index].Str, e.Node.Index);
                 paramSet.setValue = new DgSetValue(cP.getDgValue);
                 paramSet.FormClosed += new FormClosedEventHandler(callSet);
                 paramSet.ShowDialog();
             }
             catch (Exception ex)
             {
                 ex.ToString();
                 MessageBox.Show(ex.ToString());
                 MessageBox.Show("Please choose a correct parameter !!!");
             }
         }
     }
 }