private void pbxAdd_Click(object sender, EventArgs e) { UserProfileForm userProfileDetails = new UserProfileForm(); userProfileDetails.Show(); this.Hide(); }
private void userLabel_Click(object sender, EventArgs e) { UserProfileForm userProfileForm = new UserProfileForm(Username, Password); Hide(); userProfileForm.Show(); }
private void userBtn_Click_1(object sender, EventArgs e) { UserProfileForm upf = new UserProfileForm(currentUser); upf.Show(); this.Hide(); }
private void OpenUserProfileFormButton_Click(object sender, EventArgs e) { var frm = new UserProfileForm(UserProfile.Id); frm.Closed += (s, args) => this.Show(); frm.Show(); this.Hide(); }
private void pbxEdit_Click(object sender, EventArgs e) { int idUser = Int32.Parse(dgvUserProfile.SelectedRows[0].Cells[0].Value.ToString()); UserProfileForm userProfileDetailsForm = new UserProfileForm(idUser); userProfileDetailsForm.Show(); this.Close(); }
public ActionResult UserProfile(UserProfileForm form) { if (ModelState.IsValid) { var user = _userService.GetCurrent(User.Identity.Name); Mapper.Map(form, user); _userService.Update(user); } return(View(form)); }
private void LblCurrentUser_Click(object sender, EventArgs e) { FormPassValue.currentWindowState = this.WindowState; FormPassValue.languageState = Thread.CurrentThread.CurrentCulture.ToString(); FormPassValue.whichRole = Constants.Teacher_Role; UserProfileForm form = new UserProfileForm(); this.Hide(); DialogResult result = form.ShowDialog(this); }
void ShowUserProfileDialog() { using (UserProfileForm form = new UserProfileForm(CurrentProfile)) { if (form.ShowDialog(this) == DialogResult.OK) { CurrentProfile.Assign(form.CurrentUser); VirtualAssistant.Plugins.GetPluginByType <SimlPlugin>().Bot.MainUser.Settings["Name"].Value = CurrentProfile.FirstName; } } }
public ActionResult ProfileComplete(UserProfileForm userForm) { ViewData["SuccessMessage"] = string.Format(GlobalResources.Resources.ProfileComplete_Success_Message, userForm.FullName); return(View()); }
public ActionResult Profile(UserProfileForm userForm) { ViewData["UserId"] = userForm.UserId; return(View()); }