private void KiraBilgiButon_Click(object sender, EventArgs e) { if (SubedeRadioButon.Checked == true && BitisTimePicker.Enabled == true && KiraSartCheckBox.Checked == true && Session.Yetki == 1) // ÜYE OLAN { UyeyeKiralama(); } else if (OnlineRadioButon.Checked == true && BitisTimePicker.Enabled == true && KiraSartCheckBox.Checked == true && Session.Yetki == 1) { OnlineOdemeGroupBox.Enabled = true; KartAdSoyadTxtBox.Focus(); } else if (SubedeRadioButon.Checked == true && BitisTimePicker.Enabled == true && KiraSartCheckBox.Checked == true && Session.Yetki == 0) // ÜYE OLMAYAN { OnlineOdemeGroupBox.Enabled = false; UyeOlmayanGroupBox.Enabled = true; EpostaTxtBox.Focus(); } else if (OnlineRadioButon.Checked == true && BitisTimePicker.Enabled == true && KiraSartCheckBox.Checked == true && Session.Yetki == 0) { OnlineOdemeGroupBox.Enabled = true; UyeOlmayanGroupBox.Enabled = false; EpostaTxtBox.Focus(); } else if (KiraSartCheckBox.Checked == false) { MessageBox.Show("Kira şartlarını onaylayınız.", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("İşlemleri kontrol ederek tekrar deneyiniz.", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void KrediKartıButon_Click(object sender, EventArgs e) { if (KartAdSoyadTxtBox.Text.Length > 3 && KartNoTxtBox.Text.Length == 16 && CVCTxtBox.Text.Length == 3 && KartBitisGunComboBox.SelectedIndex > 0 && KartBitisAyComboBox.SelectedIndex > 0) { if (Session.Yetki == 1) { UyeyeKiralama(); } else if (Session.Yetki == 0) { UyeOlmayanGroupBox.Enabled = true; EpostaTxtBox.Focus(); } } else { MessageBox.Show("Kart bilgilerinizi kontrol ediniz.", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Information); } }