Download mono for major city bus routes (developed using monodevelop)

Source: Internet
Author: User

When I access the Internet through Ubuntu at night, I see an article "Download bus routes for major cities" in the garden. The blogger provides an EXE which is not running in Linux, I think of developing one with GTK # in mono. The key code blogger has provided it, and all of them have the following. First:

 

I have heard that. Net has a mono implementation in Linux, but it has never been used. I just took this opportunity to play.

Open monodevelop, create a GTK # project, and use the visualization GUI Design Tool provided by monodevelop. Drag several controls according to the pictures of the blogger, and then start.

Copy the provided Code directly, add several modules to the reference, and then search for two regular expressions that the landlord did not provide on the Internet.

After several simple syntax errors, the compilation is successful after the modification.

I am so excited that I have to run it quickly and there is no result.

After debugging, we found garbled characters and set the character encoding.

Webdownloader. Encoding = system. Text. encoding. getencoding ("GBK ");

OK. The result of this operation will be available.

There are still many other functions that haven't been added, but I have already succeeded in Nanjing.

There are several issues left over:

1. I only moved from Nanjing to another city. I can directly modify the code without associating it with the drop-down list box.

2. Download 93 pages, sometimes hanging in the middle. I don't know if the speed is slow or the thread cannot be written in Linux.

3. Do not know the event corresponding to the onshow form in GTK.

The above two questions are the ones familiar with monodevelop. Learn from them.

The program source code is attached: who is interested in improving busstation? Let me learn.

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.