public void InitializeDDiv() { if (trvDiv.Nodes.Count > 0) { //this.LastSelectNode = trvDiv.SelectedNode; this.LastSelectNode = trvDiv.Nodes[0]; f = new A_frmDDivConfig(LastSelectNode, double.Parse(ntbMin.Text), double.Parse(ntbMax.Text), ConfigXml, trvDiv, this); //f.Show(Dockpanel, DockState.Document); } }
private void tsmEdit_Click(object sender, EventArgs e) { this.LastSelectNode = trvDiv.SelectedNode; //this.LastSelectNode = trvDiv.Nodes[0]; f = new A_frmDDivConfig(LastSelectNode, double.Parse(ntbMin.Text), double.Parse(ntbMax.Text), ConfigXml, trvDiv, this); f.Show(Dockpanel, DockState.Document); }