private void btnNewTracServer_Click(object sender, EventArgs e) { AddNewServerForm form = new AddNewServerForm(); if (form.ShowDialog() == DialogResult.OK) { treeTrac.Nodes["nodeServers"].Nodes.Add(new ServerNode(form.Result)); } }
private void mnuServerEdit_Click(object sender, EventArgs e) { ServerNode node = treeTrac.SelectedNode as ServerNode; AddNewServerForm form = new AddNewServerForm(node.ServerDetails); if (form.ShowDialog() == DialogResult.OK) { node.Refresh(); } }