Initialise() 개인적인 메소드

private Initialise ( ) : void
리턴 void
예제 #1
0
        static void Main()
        {
            // set up the application
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MainWindow window     = new MainWindow();
            Controller controller = new Controller();

            controller.Initialise();
            window.controller     = controller;
            controller.mainWindow = window;

            // publish the controller to the remoting system
            TcpChannel channel = new TcpChannel(1180);

            ChannelServices.RegisterChannel(channel, false);
            RemotingServices.Marshal(controller, "controller.rem");

            // start the event loop
            Application.Run(window);

            // the application is finishing - close down the remoting channel
            RemotingServices.Disconnect(controller);
            ChannelServices.UnregisterChannel(channel);
        }
예제 #2
0
        static void Main()
        {
            // set up the application
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MainWindow window = new MainWindow();
            Controller controller = new Controller();
            controller.Initialise();
            window.controller = controller;
            controller.mainWindow = window;

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

            // start the event loop
            Application.Run(window);

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