/// <summary> /// creates form for adding receiver /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ToolStripMenuItem1_Click(object sender, EventArgs e) { var objPopUpForm = new AddReceiverForm((int)treeView1.SelectedNode.Tag); objPopUpForm.ShowDialog(); UpdateTree(); }