Ejemplo n.º 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            GenericList <Employee> gList = new GenericList <Employee>();

            gList.AddHead(new Employee("Julio", 1));
            gList.AddHead(new Employee("Yefry", 2));
            gList.AddHead(new Employee("Key", 3));
            gList.AddHead(new Employee("David", 4));
            gList.AddHead(new Employee("Luis", 5));

            foreach (Employee g in gList)
            {
                Console.WriteLine(g.Name + ", " + g.ID);
            }

            Employee result = gList.FindFirstOccurrence("Key");

            Console.WriteLine("Search " + result.Name + ", " + result.ID);

            GenericResponse.changeEmployeeName("Holanda", result, new Employee("K", 2));

            //this.NavigationController.NavigationBarHidden = true;

            //LoginButton.TouchUpInside += LoginButton_TouchUpInside;
        }