private void pbxAdd_Click(object sender, EventArgs e)
        {
            UserProfileForm userProfileDetails = new UserProfileForm();

            userProfileDetails.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void userLabel_Click(object sender, EventArgs e)
        {
            UserProfileForm userProfileForm = new UserProfileForm(Username, Password);

            Hide();
            userProfileForm.Show();
        }
Ejemplo n.º 3
0
        private void userBtn_Click_1(object sender, EventArgs e)
        {
            UserProfileForm upf = new UserProfileForm(currentUser);

            upf.Show();
            this.Hide();
        }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 6
0
        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));
        }
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
 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;
         }
     }
 }
Ejemplo n.º 9
0
 public ActionResult ProfileComplete(UserProfileForm userForm)
 {
     ViewData["SuccessMessage"] = string.Format(GlobalResources.Resources.ProfileComplete_Success_Message, userForm.FullName);
     return(View());
 }
Ejemplo n.º 10
0
 public ActionResult Profile(UserProfileForm userForm)
 {
     ViewData["UserId"] = userForm.UserId;
     return(View());
 }