示例#1
0
        private void btnViewProfile_Click(object sender, EventArgs e)
        {
            frmUserProfile registratioPag = new frmUserProfile(imageVUp, roleVUp, nameVUp, emailVUP, moboleVUp, surnameVUp, model, oldRoleVUp);

            this.Hide();
            registratioPag.Show();
        }
示例#2
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridView1.CurrentRow.Index != -1)
            {
                model.UserID = Convert.ToInt32(dataGridView1.CurrentRow.Cells["UserID"].Value);
                using (MacrocommEntities db = new MacrocommEntities())
                {
                    model = db.tblRegistrations.Where(x => x.UserID == model.UserID).FirstOrDefault();

                    imageVUp   = byteArrayToImage(model.images);
                    roleVUp    = model.UserRole;
                    nameVUp    = model.FirstName;
                    emailVUp   = model.Email;
                    mobileVUp  = model.Mobile;
                    surnameVUp = model.Surname;
                }
            }

            frmUserProfile ViewUserProfile = new frmUserProfile(imageVUp, roleVUp, nameVUp, emailVUp, mobileVUp, surnameVUp, model, oldRoleVUP);

            ViewUserProfile.Show();
        }