private void TreeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Node.Name == "Xem") { FormView form1 = new FormView(); form1.Show(); } else if (e.Node.Name == "Nhap") { FormImport form2 = new FormImport(); form2.Show(); } else if (e.Node.Name == "Xuat") { FormExport form3 = new FormExport(); form3.Show(); } else if (e.Node.Name == "Help") { // helping here } else if (e.Node.Name == "ThongTinNguoiDung") { // user info here } else if (e.Node.Name == "ThemNguoiDung") { // adding new user here } }
private void BtnAdd_Click(object sender, EventArgs e) { FormImport form2 = new FormImport(); form2.Show(); }