private void cbGoruntulenecekDegisken_SelectedIndexChanged(object sender, EventArgs e) { if (secili_kontrol.GetType() == typeof(Giris)) { Giris giris = (Giris)(secili_kontrol); giris.DegiskenAdi = cbGoruntulenecekDegisken.SelectedItem.ToString(); } else if (secili_kontrol.GetType() == typeof(Cikis)) { Cikis cikis = (Cikis)(secili_kontrol); cikis.DegiskenAdi = cbGoruntulenecekDegisken.SelectedItem.ToString(); } this.Refresh(); }
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 btnGiris_Click(object sender, EventArgs e) { Giris pnl = new Giris("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; }