public void Ekle(Kelime kok, string ingilizce, string turkce, int Turu, string cumle, string Soru, DateTime tekrar, int seviye, int id) { if (kok.Tekrar < tekrar) { if (kok.Sag == null) { kok.Sag = new Kelime(); kok.Sag.Ingilizce = ingilizce; kok.Sag.Turkce = turkce; kok.Sag.Turu = Turu; kok.Sag.OrnekCumle = cumle; kok.Sag.Soru = Soru; kok.Sag.Tekrar = tekrar; kok.Sag.Seviye = seviye; kok.Sag.ID = id; return; } Ekle(kok.Sag, ingilizce, turkce, Turu, cumle, Soru, tekrar, seviye, id); } else { if (kok.Sol == null) { kok.Sol = new Kelime(); kok.Sol.Ingilizce = ingilizce; kok.Sol.Turkce = turkce; kok.Sol.Turu = Turu; kok.Sol.OrnekCumle = cumle; kok.Sol.Soru = Soru; kok.Sol.Tekrar = tekrar; kok.Sol.Seviye = seviye; kok.Sol.ID = id; return; } Ekle(kok.Sol, ingilizce, turkce, Turu, cumle, Soru, tekrar, seviye, id); } }
public Kelime() { Sag = null; Sol = null; }