예제 #1
0
파일: Form1.cs 프로젝트: trojanct/school
        public void Folkstab()
        {
            Folks folks = new Folks();

            System.IO.StreamReader folkfile = new System.IO.StreamReader(@"C:\Users\BlooddSkullKing\source\repos\school\SecretSanta\Folks.txt");


            folks.Name  = folkfile.ReadLine();
            folks.Gifts = folkfile.ReadLine();


            Folkbox.Text = folks.Name;
            Fgifts.Text  = folks.Gifts;
            int a = folks.Giftnumber(folks.Gifts);

            Fnum.Text = a.ToString();
        }
예제 #2
0
 private FolksModel ConvertBoToDataContract(Folks folksDto)
 {
     return(new FolksModel(folksDto.Bio, folksDto.BirthLocation, folksDto.FirstName, folksDto.ID, folksDto.LastName));
 }