Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 private FolksModel ConvertBoToDataContract(Folks folksDto)
 {
     return(new FolksModel(folksDto.Bio, folksDto.BirthLocation, folksDto.FirstName, folksDto.ID, folksDto.LastName));
 }