private void button1_Click(object sender, EventArgs e)//ileri butonuna basıldığında { Bitis b = new Bitis(); b.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { Bitis b = new Bitis(); b.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { //strategy deseni çağırma PaymentOperation paymentOperation; if (label5.Text == "0") { paymentOperation = new PaymentOperation(new BankaKartiStrategy()); paymentOperation.MakePayment(); } else if (label5.Text == "1") { paymentOperation = new PaymentOperation(new KrediKartiStrategy()); paymentOperation.MakePayment(); } else { MessageBox.Show("İşlem Başarısız Oldu"); } Bitis _bitis = new Bitis(); _bitis.Show(); this.Hide(); }