private void LblGetPay_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { frmPayment _frmPayment = new frmPayment(); _frmPayment.Owner = this; _frmPayment.ShowDialog(); if (_frmPayment.flag) { _userBLL.UpdatePremium(_currentUser.UserID); MessageBox.Show("Premium Özelliklerini Kullanabilmeniz İçin Tekrar Giriş Yapınız."); this.Close(); } }
private void BtnRegister_Click(object sender, EventArgs e) { _frmPayment = new frmPayment(); if (radioStandart.Checked || !_frmPayment.flag) { _user.RoleID = 2; } if (txtPass.Text == txtPassControl.Text) { try { _user.FirstName = txtFirstName.Text; _user.LastName = txtLastName.Text; _user.EMail = txtEmail.Text; _user.Password = txtPass.Text; _user.BirthDate = dtpBirthDate.Value; _userBLL.Add(_user); last = _userBLL.GetLastUser(); if (radioPremium.Checked) { _frmPayment.Owner = this; _frmPayment.ShowDialog(); if (_frmPayment.flag) { _userBLL.UpdatePremium(last.UserID); GetPay(_frmPayment._payment); } } this.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } else { MessageBox.Show("Şifreler uyuşmuyor!"); } }