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 ();
}
}
}