Step by step, cainiao builds library plug-ins: manual portal startup

Source: Internet
Author: User
Manual start Program The entry is very simple. It is also to create a Windows application. In the main method, the user editing interface is called up for the user to see, and then the specific work object is instantiated, because it takes some time to interact with the network, users cannot wait. The parameter "common" is passed to the factory when a specific work object is produced. Code As follows:

Using System;
Using System. Collections. Generic;
Using System. Windows. forms;

Using Libraryhelper. editui;
Using Libraryhelper. idowork;
Using Libraryhelper. idoworkfactory;

Namespace Libraryhelper. commonstart
{
Static   Class Program
{
/**/ /// <Summary>
///The main entry point of the application.
/// </Summary>
[Stathread]
Static   Void Main ()
{
Application. enablevisualstyles ();
Application. setcompatibletextrenderingdefault ( False );

// When you manually start the instance, the original data is displayed on the main editing page.
// Next, update the data based on the network connection status.
Frmliraryedit frmedit = Frmliraryedit. getsinglefrmedit ();
Frmedit. Show ();

Ilibraryhelperdowork dowork = Getdoworkfactory. createdowork ( " Common " );
Dowork. dowork ();

Application. Run ();
}
}
}

 

 

 

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.