03-01-2021, Saat: 00:56
Kusuruma bakmayın C# ile ilgili olacak forum kurallarına aykırı ise konuyu silebilirsiniz.
Bizim Delphi de yaptığımız
Consol örneğini Form üzerinde denemek istemiştim
Bizim Delphi de yaptığımız
Function Topla(i1,i2:TEdit):string;şu olayın karşılığı... Aslında denemek istediğim tam olarak şu
class Ogrenci
{
private string ogrenciadsoyad;
private string bolum;
private int ogrencino;
public string Ogrenciadsoyad
{
get { return ogrenciadsoyad; }
set { ogrenciadsoyad = value; }
}
public string Bolum
{
get { return bolum; }
set { bolum = value; }
}
public int Ogrencino
{
get { return ogrencino; }
set
{
if (value < 0)
{
ogrencino = 0;
}
else
{
ogrencino = value;
}
}
}
public void ekle(ListBox listBox)
{
//this.listBox.Items.Add(Ogrenciadsoyad);
//this.listBox.Items.Add(Bolum);
//this.listBox.Items.Add(Ogrencino.ToString());
}
}
Ogrenci clas = new Ogrenci
{
Ogrenciadsoyad = "deneme",
Bolum = "yok",
Ogrencino = 15,
//ekle(listBox1)
};
Consol örneğini Form üzerinde denemek istemiştim

