WP7 mobile phone retrieval source code

Source: Internet
Author: User

Not to mention nonsense

Application address: http://115.com/file/dp7nnu54 #
You can download searchphone. xap. This application has been certified by Microsoft.
This application has three functions: querying the mobile phone home location, dialing, and saving number. The application is very simple. Most of the time I have drawn on the p Diagram and design page.

CallCode.

 

// Call <br/> private void call_click (Object sender, routedeventargs e) <br/>{< br/> If (checktext ()) <br/>{< br/> phonecalltask task = new phonecalltask (); <br/> task. displayname = "this number"; <br/> task. phonenumber = phonenumber. text; <br/> task. show (); <br/>}< br/>}

Save the phone number code

 

// Save the mobile phone number <br/> private void save_click (Object sender, routedeventargs e) <br/>{< br/> If (checktext ()) <br/>{< br/> savephonenumbertask task = new savephonenumbertask (); <br/> task. phonenumber = phonenumber. text; <br/> task. show (); <br/>}< br/>}
Here, the server used for query is the WebService provided by webxml.

 

Http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx

The Code is as follows:

 

Mobileservice. mobilecodewssoapclient client = new mobileservice. mobilecodewssoapclient (); <br/> private void search_click (Object sender, routedeventargs e) <br/>{< br/> If (checktext ()) <br/>{< br/> L. show (this, "searching ...... "); <br/> client. getmobilecodeinfoasync (phonenumber. text. tostring (), ""); <br/> client. getmobilecodeinfocompleted + = new eventhandler <mobileservice. getmobilecodeinfocompletedeventargs> (client_getmobilecodeinfocompleted); <br/>}< br/> void client_getmobilecodeinfocompleted (Object sender, mobileservice. getmobilecodeinfocompletedeventargs e) <br/>{< br/> If (E. error = NULL) <br/>{< br/> string MSG = E. result; <br/> try <br/> {<br/> showmsg. TEXT = MSG. substring (12); </P> <p >}< br/> catch (exception) <br/>{</P> <p> MessageBox. show ("network error or mobile phone number error"); <br/>}< br/> else <br/>{< br/> MessageBox. show ("network error or mobile phone number error"); <br/>}< br/> L. hide (this, ""); <br/>}
Blog Park address: http://www.cnblogs.com/wildfeng/archive/2012/03/21/2409174.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.