StartApplication() public method

public StartApplication ( ) : void
return void
示例#1
0
        static void Main()
        {
            // instantiate the controller
            MainForm form = new MainForm();

            // publish the controller to the remoting system
            TcpChannel channel = new TcpChannel(1175);
            ChannelServices.RegisterChannel(channel, false);
            RemotingServices.Marshal(form, "controller.rem");

            // hand over to the controller
            form.StartApplication();

            // the application is finishing - close down the remoting channel
            RemotingServices.Disconnect(form);
            ChannelServices.UnregisterChannel(channel);
        }
示例#2
0
		static void Main() 
		{
			// instantiate the controller
			MainForm form = new MainForm();
			
			// publish the controller to the remoting system
			TcpChannel channel = new TcpChannel(1175);
			ChannelServices.RegisterChannel(channel, false);
			RemotingServices.Marshal(form, "controller.rem");

			// hand over to the controller
			form.StartApplication();

			// the application is finishing - close down the remoting channel
			RemotingServices.Disconnect(form);
			ChannelServices.UnregisterChannel(channel);
		}