Ejemplo n.º 1
0
        private void checkBox2_CheckedChanged(object sender, EventArgs e)
        {
            ToplamIzleyiciSayisi tıs = new ToplamIzleyiciSayisi();

            tıs.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox1.Checked == true) //Eğer checkbox1 seçildiyse
            {
                ProductManager      productManager;
                DegisiklikOperation degisiklikOperation;
                if (label2.Text == "0")
                {
                    degisiklikOperation = new DegisiklikOperation(new IndirimStrategy());
                    degisiklikOperation.MakeDegisiklik();
                    var yoneticiObserver = new YoneticiObserver();
                    productManager = new ProductManager();
                    productManager.Attach(new YoneticiObserver());
                    productManager.UpdatePrice();
                }
                else
                {
                    degisiklikOperation = new DegisiklikOperation(new SabitStrategy());
                    degisiklikOperation.MakeDegisiklik();
                }

                FilmEkle fe = new FilmEkle();
                fe.Show();
                this.Hide();
            }
            else if (checkBox2.Checked == true)//checkbox2 seçildiyse
            {
                ToplamIzleyiciSayisi tıs = new ToplamIzleyiciSayisi();
                tıs.Show();
                this.Hide();
            }
            else if (checkBox3.Checked == true)
            {
            }
            else
            {
            }
        }