Exemplo n.º 1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            string val = e.Parameter as string;

            model = new LoginView();

            //
            i = new Institution();
            i = model.getInstitutionId(val);
            string me = i.insitution;
            int    id = i.Id;

            // messageBox(me+"");
            list = model.getCourses(id);
            // list = model.getCourses(2);
            foreach (var inst in list)
            {
                listView.Items.Add(inst.Name);
            }

            base.OnNavigatedTo(e);
        }
Exemplo n.º 2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            string val = e.Parameter as string;
            model = new LoginView();
            
            //
            i = new Institution();
            i= model.getInstitutionId(val);
            string me = i.insitution;
            int id = i.Id;
          
           // messageBox(me+"");
            list = model.getCourses(id);
           // list = model.getCourses(2);
            foreach (var inst in list)
            {
                listView.Items.Add(inst.Name);
               
            }
            
            base.OnNavigatedTo(e);

        }