Пример #1
0
        private void linkRegister_Click(object sender, EventArgs e)
        {
            FormRegisterDgroup frmregisterdgroup = new FormRegisterDgroup();

            frmregisterdgroup.reference_to_frmlogin = this;
            this.Hide();
            frmregisterdgroup.Show();
        }
Пример #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();
     }
 }