Exemplo n.º 1
0
        public myPanel nesneOlustur(string nesneTipi, String name)
        {
            myPanel yeniNesne = null;

            if (nesneTipi == typeof(Baslat).ToString())
            {
                yeniNesne = new Baslat(name);
            }
            else if (nesneTipi == typeof(Degisken).ToString())
            {
                yeniNesne = new Degisken(name);
            }
            else if (nesneTipi == typeof(Islem).ToString())
            {
                yeniNesne = new Islem(name);
            }
            else if (nesneTipi == typeof(Giris).ToString())
            {
                yeniNesne = new Giris(name);
            }
            else if (nesneTipi == typeof(for_).ToString())
            {
                yeniNesne = new for_(name);
            }
            else if (nesneTipi == typeof(Eger).ToString())
            {
                yeniNesne = new Eger(name);
            }
            else if (nesneTipi == typeof(Cikis).ToString())
            {
                yeniNesne = new Cikis(name);
            }
            else if (nesneTipi == typeof(Bekle).ToString())
            {
                yeniNesne = new Bekle(name);
            }
            else if (nesneTipi == typeof(Dugum).ToString())
            {
                yeniNesne = new Dugum(name);
            }
            else if (nesneTipi == typeof(Dur).ToString())
            {
                yeniNesne = new Dur(name);
            }
            else if (nesneTipi == typeof(DegiskenIzle).ToString())
            {
                yeniNesne = new DegiskenIzle(name);
            }
            return(yeniNesne);
        }
Exemplo n.º 2
0
 private void btnIslem_Click(object sender, EventArgs e)
 {
     Islem pnl = new Islem("pnl" + Convert.ToString(nesne_count));
      panel_olustur(pnl);
 }
Exemplo n.º 3
0
        public myPanel nesneOlustur(string nesneTipi,String name)
        {
            myPanel yeniNesne=null;

             if (nesneTipi == typeof(Baslat).ToString())
             {
                 yeniNesne = new Baslat(name);
             }
             else if (nesneTipi ==typeof(Degisken).ToString())
             {
                 yeniNesne = new Degisken(name);
             }
             else if (nesneTipi == typeof(Islem).ToString())
             {
                 yeniNesne = new Islem(name);
             }
             else if (nesneTipi == typeof(Giris).ToString())
             {
                 yeniNesne = new Giris(name);
             }
             else if (nesneTipi == typeof(for_).ToString())
             {
                 yeniNesne = new for_(name);
             }
             else if (nesneTipi == typeof(Eger).ToString())
             {
                 yeniNesne = new Eger(name);
             }
             else if (nesneTipi == typeof(Cikis).ToString())
             {
                 yeniNesne = new Cikis(name);
             }
             else if (nesneTipi == typeof(Bekle).ToString())
             {
                 yeniNesne = new Bekle(name);
             }
             else if (nesneTipi == typeof(Dugum).ToString())
             {
                 yeniNesne = new Dugum(name);
             }
             else if (nesneTipi == typeof(Dur).ToString())
             {
                 yeniNesne = new Dur(name);
             }
             else if (nesneTipi == typeof(DegiskenIzle).ToString())
             {
                 yeniNesne = new DegiskenIzle(name);
             }
             return yeniNesne;
        }
Exemplo n.º 4
0
        private void btnIslem_Click(object sender, EventArgs e)
        {
            Islem pnl = new Islem("pnl" + Convert.ToString(nesne_count));

            panel_olustur(pnl);
        }