Initialise() private method

private Initialise ( ) : void
return void
コード例 #1
0
ファイル: Runner.cs プロジェクト: bharath87/EDMSuite
        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
ファイル: Runner.cs プロジェクト: ColdMatter/EDMSuite
        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);
        }