Ejemplo n.º 1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     this.con= e.Parameter as Convention;
     if (con != null)
     {
         this.location = con.location;
         // textBox.Text += location;
         this.name = con.name;
         this.textBox.Text = con.name + "\n" + con.location;
         //this.con = con;
         getDestination2();
     }
 }
Ejemplo n.º 2
0
        private List<Convention> getConList(String xmlFile)
        {
            XDocument doc = XDocument.Load(xmlFile);

            foreach (XElement element in doc.Descendants("cons").Nodes())
            {
                String name = element.Element("name").Value;
                String month = element.Element("month").Value;
                String year = element.Element("year").Value;
                String location = element.Element("location").Value;
                String days = element.Element("days").Value;

                Convention con = new Convention(name, month,year,location,days);

                conList.Add(con);
            }

            return conList;
        }
Ejemplo n.º 3
0
        public void setInformation(Convention con)
        {
            this.location = con.location;
            // textBox.Text += location;
            this.name = con.name;
            this.textBox.Text = con.name + "\n" + con.location;
            this.con = con;
            getDestination2();

        }