示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            Form frm = new frmAddProducts();
            frm.ShowDialog();
            frm.Focus();

            propagateItemList(); //propaget list of items
        }
示例#2
0
        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;

                 }
        }