Exemplo n.º 1
0
        private BaseMap JTokenToModel(JToken item, ref BaseMap oSieve)
        {
            int id = int.Parse(item["id"].ToString());
            int ext = int.Parse(item["place"].ToString());
            int seq = int.Parse(item["seq"].ToString());
            string name = item["name"].ToString() ?? "";
            string keywords = item["keywords"].ToString() ?? "";
            string title = item["title"].ToString() ?? "";
            oSieve.id = id;
            oSieve.keywords = keywords;
            oSieve.name = name;
            oSieve.ext = ext;
            oSieve.seq = seq;
            oSieve.title = title;
            return oSieve;

        }
 private void LBSelector2_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     result = this.LBSelector2.SelectedItem as BaseMap;
     OnData2Changed(sender, e);
 }