示例#1
0
 private void btnDegisken_Click(object sender, EventArgs e)
 {
     Degisken pnl = new Degisken("pnl" + Convert.ToString(nesne_count));
      degisken_listesi = new DegiskenListesi(pnl.YapilacakIslem);
      degisken_listesi.DegiskenYazdir(Degiskenler);
      panel_olustur(pnl);
 }
示例#2
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;
        }