private void advTree1_NodeDoubleClick(object sender, TreeNodeMouseEventArgs e) { try { if (e.Node.Parent != null && !string.IsNullOrEmpty(e.Node.Parent.Text)) { //string str = e.Node.Text + "," + e.Node.Parent.Text; //MessageBox.Show(str); frmMaterialList MaterialList = new frmMaterialList(); MaterialList.DiscreteJobsId = e.Node.Text; MaterialList.GetMaterialTaskId = e.Node.Parent.Text; MaterialList.ShowDialog(); } } catch (Exception ex) { throw ex; } }