private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmUser user = new frmUser(); user.ShowDialog(); loaddatauser(); }
private void pbxUserSetting_Click(object sender, EventArgs e) { //USER SETTING FORM OPEN frmUser frmU = new frmUser(); frmU.ShowDialog(); }
private void button3_Click(object sender, EventArgs e) { using (frmUser frmuser = new frmUser()) { if (frmuser.ShowDialog() == DialogResult.OK) { //myPanel.ListTask = TaskController.GetListTask(); UpdateCBBView(); HienThi(); } } }
private void menu_user_Click(object sender, RoutedEventArgs e) { try { //人员管理 frmUser frm = new frmUser(); frm.ShowDialog(); } catch (Exception ex) { } }
/// <summary> /// 添加手术 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSurAdd_Click(object sender, EventArgs e) { ucICD9.setWidth(ucICD9.Width); frmUser us = new frmUser("ICD9"); us.ShowDialog(); if (ucElement.id != "" && ucElement.myName != "") { ucElement element = new ucElement(ucElement.myName, ucElement.id); ucICD9.createUser(element); } }
/// <summary> /// Handles click event for new student button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnNew_Click(object sender, EventArgs e) { UserData newUser = new UserData(); newUser.Role = UserData.Roles.Student; frmUser user = new frmUser(newUser); user.ShowDialog(); //check to see if the user was added to database... if not then we probably cancelled if (newUser.Id != 0) { //add user to user list ListViewItem item = lvwStudentsNotInCourse.Items.Add(newUser.FullName, 0); item.Tag = newUser; } }
private void gridUser_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { User op = new User(); if (gridUser.SelectedCells.Count > 0) { int index = gridUser.SelectedCells[0].RowIndex; DataGridViewRow s = gridUser.Rows[index]; op.Id = Convert.ToInt32(s.Cells["Id"].Value); op.UserName = s.Cells["UserName"].Value.ToString(); op.FirstName = s.Cells["FirstName"].Value.ToString(); op.LastName = s.Cells["LastName"].Value.ToString(); op.Password = s.Cells["Password"].Value.ToString(); op.RoleId = Convert.ToInt16(s.Cells["RoleId"].Value.ToString()); } frmUser p = new frmUser(op); p.ShowDialog(); }
private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { int row_index = gridView1.FocusedRowHandle; string col_field_name = "UserID"; object value = gridView1.GetRowCellValue(row_index, col_field_name); if (value != null) { frmUser us = new frmUser(); us.ID = (int)value; us.ShowDialog(); } else { XtraMessageBox.Show("Bạn chưa chọn đối tượng để chỉnh sửa!", "Cảnh báo", MessageBoxButtons.OK, MessageBoxIcon.Warning); } loaddatauser(); }
private void gridViewUsers_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { try { int Id = int.Parse(gridViewUsers.Rows[e.RowIndex].Cells["ID"].Value.ToString()); var user = userRepo.GetUser(Id); if (user == null) { throw new Exception("Erro ao identificar usuario."); } frmUser frm = new frmUser(user); frm.ShowDialog(); } catch (Exception ex) { MessageBox.Show($"Erro ao entrar na conta! Detalhes: {ex.Message}"); } }
private void mnuUser_Click(object sender, EventArgs e) { frmUser f = new frmUser(); f.ShowDialog(this); }
private void lnkAddUser_Click(object sender, EventArgs e) { frmUser fr = new frmUser(); fr.ShowDialog(); }
private void treeViewMain_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Node.Text == "User") { User.Owner = this; User.UserName = UserName; User.ShowDialog(); } if (e.Node.Text == "User Group") { userGroup.Owner = this; userGroup.UserName = UserName; userGroup.ShowDialog(); } if (e.Node.Text == "Group Authorization") { grpAuth.Owner = this; grpAuth.UserName = UserName; grpAuth.ShowDialog(); } if (e.Node.Text == "User Authorization") { userAuth.Owner = this; userAuth.UserName = UserName; userAuth.ShowDialog(); } if (e.Node.Text == "Agent Information") { frmAgentInfo agentInfo = new frmAgentInfo(); agentInfo.UserName = UserName; agentInfo.Owner = this; agentInfo.ShowDialog(); } if (e.Node.Text == "Employee Hierarchy") { frmEmpHierarchy empHierarchy = new frmEmpHierarchy(); empHierarchy.UserName = UserName; empHierarchy.Owner = this; empHierarchy.ShowDialog(); } if (e.Node.Text == "Sales Area") { salesArea.UserName = UserName; salesArea.Owner = this; salesArea.ShowDialog(); } if (e.Node.Text == "Weekly Rate Setup") { frmRateSetup rateSetup = new frmRateSetup(); rateSetup.Owner = this; rateSetup.ShowDialog(); } if (e.Node.Text == "Reason Of Unsold") { frmROU rou = new frmROU(); rou.UserName = UserName; rou.Owner = this; rou.ShowDialog(); } if (e.Node.Text == "CTP Setup") { frmCTPSetup ctpSetup = new frmCTPSetup(); ctpSetup.UserName = UserName; ctpSetup.Owner = this; ctpSetup.ShowDialog(); } if (e.Node.Text == "Page Setup") { frmPageSetup pageSetup = new frmPageSetup(); pageSetup.UserName = UserName; pageSetup.Owner = this; pageSetup.ShowDialog(); } if (e.Node.Text == "Category Setup") { frmCategorySetup categorySetup = new frmCategorySetup(); categorySetup.UserName = UserName; categorySetup.Owner = this; categorySetup.ShowDialog(); } if (e.Node.Text == "Region") { frmRegion region = new frmRegion(); region.UserName = UserName; region.Owner = this; region.ShowDialog(); } if (e.Node.Text == "Population") { frmPopulation population = new frmPopulation(); population.UserName = UserName; population.Owner = this; population.ShowDialog(); } if (e.Node.Text == "Route") { frmRoute route = new frmRoute(); route.Owner = this; route.ShowDialog(); } if (e.Node.Text == "Sub-Route") { frmSubRoute subRoute = new frmSubRoute(); subRoute.Owner = this; subRoute.ShowDialog(); } if (e.Node.Text == "Vehicle") { frmVehicleInfo vehicleInfo = new frmVehicleInfo(); vehicleInfo.Owner = this; vehicleInfo.ShowDialog(); } if (e.Node.Text == "Transport Maintenance") { frmTransportMaintenance transportMaintenance = new frmTransportMaintenance(); transportMaintenance.Owner = this; transportMaintenance.ShowDialog(); } if (e.Node.Text == "Order Entry") { frmOrdEntry ordEntry = new frmOrdEntry(); ordEntry.UserName = UserName; ordEntry.Owner = this; ordEntry.ShowDialog(); } if (e.Node.Text == "Copy Order") { frmCopyOrd copyOrd = new frmCopyOrd(); copyOrd.Owner = this; copyOrd.ShowDialog(); } if (e.Node.Text == "Modify Order") { frmModifyOrd modifyOrd = new frmModifyOrd(); modifyOrd.Owner = this; modifyOrd.ShowDialog(); } if (e.Node.Text == "Return Entry") { frmRtnEntry rtnEntry = new frmRtnEntry(); rtnEntry.Owner = this; rtnEntry.ShowDialog(); } if (e.Node.Text == "Regular Modify") { frmRegularMod regularMod = new frmRegularMod(); regularMod.Owner = this; regularMod.ShowDialog(); } if (e.Node.Text == "Challan Modify") { frmChallanMod challanMod = new frmChallanMod(); challanMod.Owner = this; challanMod.ShowDialog(); } if (e.Node.Text == "Order Synchronize") { frmOrdSync ordSync = new frmOrdSync(); ordSync.Owner = this; ordSync.ShowDialog(); } if (e.Node.Text == "Corporate Order") { frmCrpOrd crpOrd = new frmCrpOrd(); crpOrd.UserName = UserName; crpOrd.Owner = this; crpOrd.ShowDialog(); } if (e.Node.Text == "Rate Change") { frmRateChange rateChange = new frmRateChange(); rateChange.Owner = this; rateChange.ShowDialog(); } if (e.Node.Text == "Yearly") { frmYearly yearly = new frmYearly(); yearly.Owner = this; yearly.ShowDialog(); } if (e.Node.Text == "Monthly") { frmMonthly monthly = new frmMonthly(); monthly.Owner = this; monthly.ShowDialog(); } if (e.Node.Text == "Quarterly") { frmQuarterly quarterly = new frmQuarterly(); quarterly.Owner = this; quarterly.ShowDialog(); } if (e.Node.Text == "Competitor Name") { frmCompetitorName competitorName = new frmCompetitorName(); competitorName.Owner = this; competitorName.ShowDialog(); } if (e.Node.Text == "Competitor Sales") { frmCompetitorSales competitosSales = new frmCompetitorSales(); competitosSales.Owner = this; competitosSales.ShowDialog(); } }
private void btnUser_Click(object sender, EventArgs e) { frmUser frm = new frmUser(); frm.ShowDialog(); }