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); }
private void btnBekle_Click(object sender, EventArgs e) { Bekle pnl = new Bekle("pnl" + Convert.ToString(nesne_count)); panel_olustur(pnl); }
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; }