Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Otomobil oto = new Otomobil();

            oto.marka = "Hyundai";
            oto.model = "Accent";
            oto.yil   = 2009;
            oto.renk  = "Beyaz";
            oto.vites = "Manuel";

            string marka = oto.markagetir();

            label6.Text  = marka;
            label7.Text  = oto.model;
            label8.Text  = oto.yil.ToString();
            label9.Text  = oto.renk;
            label10.Text = oto.vites;
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Otomobil oto = new Otomobil();

            oto.marka = "Opel";
            oto.model = "Astra";
            oto.renk  = "Siyah";
            oto.yil   = 2013;
            oto.vites = "Manuel";

            string marka = oto.markagetir();

            label6.Text  = marka;
            label7.Text  = oto.model;
            label8.Text  = oto.yil.ToString();
            label9.Text  = oto.renk;
            label10.Text = oto.vites;
        }