{///Taslaktır.Kısmi Şekilde bitirilmiştir. static void Main(string[] args) { YenıOyuncu oyuncu = new YenıOyuncu(); GırısMetod gırısMetod = new GırısMetod(); EskıOyuncu oyuncu1 = new EskıOyuncu(); Console.WriteLine("'Yazılımcı Bey Youtube' OYUNUNA HOŞ GELDİNİZ\n Kayıtlı Bir Kullanıcı İseniz Lüten 1'e Basın.\n Kayıt Olmak İçin Lütfen 2'ye Basınız"); string secim = Console.ReadLine(); if (secim == "1") { gırısMetod.GırısYap(oyuncu1); } else if (secim == "2") { gırısMetod.HesapOlustur(oyuncu); } }
public void HesapOlustur(OyuncuBılgı oyuncu) { List <OyuncuBılgı> oyuncular = new List <OyuncuBılgı> { oyuncu }; YenıOyuncu oyuncu1 = new YenıOyuncu(); Console.WriteLine("Lutfen Adınızı Giriniz"); oyuncu1.Adı = Console.ReadLine(); Console.WriteLine("Lutfen Soyadınızı Giriniz"); oyuncu1.Soyad = Console.ReadLine(); Console.WriteLine("Lutfen TcNo Giriniz"); oyuncu1.TcNo = Console.ReadLine(); Console.WriteLine("Kullanıcı Nickinzi giriniz"); oyuncu1.KullanıcıNıck = Console.ReadLine(); Console.WriteLine("Şifrenizi giriniz"); oyuncu1.Sıfre = Console.ReadLine(); oyuncular.Add(oyuncu1); GırısMetod gırıs = new GırısMetod(); gırıs.GırısYap(oyuncu); }