Beispiel #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);
        }
Beispiel #2
0
 private void btnDugum_Click(object sender, EventArgs e)
 {
     Dugum pnl = new Dugum("pnl" + Convert.ToString(nesne_count));
      panel_olustur(pnl);
 }
Beispiel #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;
        }
Beispiel #4
0
        private void btnDugum_Click(object sender, EventArgs e)
        {
            Dugum pnl = new Dugum("pnl" + Convert.ToString(nesne_count));

            panel_olustur(pnl);
        }