using System;
using System.Windows.Forms;

namespace BookCommunityClient
{
	/// <summary>
	/// Startup 的摘要说明。
	/// </summary>
	public class Startup
	{
		private Startup()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
		}

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			// Create the required instances of components.
			MainFrm bookCommunityClientView = new MainFrm();

//			// Exit the application if the controller is not created properly
//			try
//			{
//				insuranceClaimsClientController = new Controller(insuranceClaimsClientView);
//			}
//			catch
//			{
//				insuranceClaimsClientController = null;
//			}
//
//			if(insuranceClaimsClientController != null)
//			{
//			
//				// Start the connection manager on a different thread for detecting 
//				// the connection state before loading the form.
//				insuranceClaimsClientController.Start();

				// Run the application.
				Application.Run(bookCommunityClientView);
			
//				// Do away with the connection manager, Executor thread and block 
//				// builder before closing the application for clean exit.
//				insuranceClaimsClientController.Dispose();
//			}
		}
	}
}
