예제 #1
0
        public void Copy(APIMASH_OM response)
        {
            try
            {
                // System.Diagnostics.Debug.WriteLine(response.ToString());
                _all.Clear();

                if (response.geonames == null)
                {
                    // nothing came back, just return;
                    return;
                }

                foreach (APIMASH_WikiPediaLib.geoname gn in response.geonames)
                {
                    _all.Add(new geonameItem(gn));
                }

                response.Copy(_all);
            }
            catch (Exception e)
            {
                throw (e);
            }
        } // copy
        public void Copy(APIMASH_OM response)
        {
            try
            {
                // System.Diagnostics.Debug.WriteLine(response.ToString());
                _all.Clear();

                if (response.geonames == null)
                {
                    // nothing came back, just return;
                    return;
                }

                foreach (APIMASH_WikiPediaLib.geoname gn in response.geonames)
                {
                    _all.Add( new geonameItem(gn) );
                }

                response.Copy(_all);
            }
            catch (Exception e)
            {
                throw (e);
            }
        } // copy
        public void Copy(APIMASH_OM response)
        {
            try
            {
                System.Diagnostics.Debug.WriteLine(response.ToString());
                _all.Clear();

                foreach (APIMASH_WikiPediaLib.geoname gn in response.geonames)
                {
                    _all.Add( new geonameItem(gn) );
                }

                response.Copy(_all);

                // copy from response to a bindable collection
                System.Diagnostics.Debug.WriteLine("lets break here and see what comes in");
            }
            catch (Exception e)
            {
                throw (e);
            }
        } // copy