Ejemplo n.º 1
0
        private void btnUpdateProfile_Click(object sender, EventArgs e)
        {
            FormRegisterUpdate frmregisterupdate = new FormRegisterUpdate();

            frmregisterupdate.reference_to_frmprofile = this;
            username                 = reference_to_frmhome.username;
            firstname                = lblFullname.Text.Split(' ')[0];
            middlename               = lblFullname.Text.Split(' ')[1];
            lastname                 = lblFullname.Text.Split(' ')[2];
            nickname                 = lblNickname.Text;
            birthday                 = lblBirthday.Text;
            gender                   = lblGender.Text;
            civilstatus              = lblCivilStatus.Text;
            citizenship              = lblCitizenship.Text;
            homeaddress              = lblHomeAddress.Text;
            homephonenumber          = lblHonePhoneNumber.Text;
            mobilenumber             = lblMobileNumber.Text;
            emailaddress             = lblEmailAddress.Text;
            profession               = lblProfessionOccupation.Text;
            companyschoolname        = lblCompanySchoolName.Text;
            companyschoolphonenumber = lblCompanyPhoneNumber.Text;
            companyschooladdress     = lblCompanySchoolAddress.Text;
            namespouse               = lblNameSpouse.Text;
            mobilenumberspouse       = lblMobileNumberSpouse.Text;
            birthdayspouse           = lblBirthdaySpouse.Text;
            this.Hide();
            frmregisterupdate.Show();
            //frmregisterupdate.
        }
Ejemplo n.º 2
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     if (rdbDgroup.Checked == true)
     {
         FormRegisterDgroup frd = new FormRegisterDgroup();
         frd.reference_to_frmregistermain = this;
         frd.reference_to_frmlogin        = reference_to_frmlogin;
         this.Hide();
         frd.Show();
     }
     else if (rdbUpdate.Checked == true)
     {
         FormRegisterUpdate fru = new FormRegisterUpdate();
         fru.reference_to_frmregistermain = this;
         username = reference_to_frmlogin.user;
         this.Hide();
         fru.Show();
     }
 }