private void button3_Click(object sender, EventArgs e) { Form frm = new frmAddProducts(); frm.ShowDialog(); frm.Focus(); propagateItemList(); //propaget list of items }
private void tvItems_Click(object sender, EventArgs e) { TreeNode node = tvItems.SelectedNode; switch(node.Text.ToString()) { case "Add New": Form frm = new frmAddProducts(); frm.ShowDialog(); break; case "Update": break; case "Remove ": break; } }