Inheritance: System.Windows.Forms.Form
Ejemplo n.º 1
0
        public void StartApplication()
        {
            // stuff the config with a default config, makes it easy to save out
            // a blank config.
            MakeDefaultBlockConfig();

            // ask the remoting system for access to the EDMHardwareController
            RemotingConfiguration.RegisterWellKnownClientType(
                Type.GetType("EDMHardwareControl.Controller, EDMHardwareControl"),
                "tcp://localhost:1172/controller.rem"
                );

            // ask the remoting system for access to ScanMaster
            RemotingConfiguration.RegisterWellKnownClientType(
                Type.GetType("ScanMaster.Controller, ScanMaster"),
                "tcp://localhost:1170/controller.rem"
                );

            // ask the remoting system for access to PhaseLock
            RemotingConfiguration.RegisterWellKnownClientType(
                Type.GetType("EDMPhaseLock.MainForm, EDMPhaseLock"),
                "tcp://localhost:1175/controller.rem"
                );

            mainWindow = new MainWindow(this);
            acquisitor = new Acquisitor();
            mainWindow.textArea.Text = "BlockHead!" + Environment.NewLine;

            liveViewer = new LiveViewer(this);
            liveViewer.Show();

            Application.Run(mainWindow);
        }
Ejemplo n.º 2
0
        public void StartApplication()
        {
            // stuff the config with a default config, makes it easy to save out
            // a blank config.
            MakeDefaultBlockConfig();

            // ask the remoting system for access to the EDMHardwareController
            RemotingConfiguration.RegisterWellKnownClientType(
                Type.GetType("EDMHardwareControl.Controller, EDMHardwareControl"),
                "tcp://localhost:1172/controller.rem"
                );

            // ask the remoting system for access to ScanMaster
            RemotingConfiguration.RegisterWellKnownClientType(
                Type.GetType("ScanMaster.Controller, ScanMaster"),
                "tcp://localhost:1170/controller.rem"
                );

            // ask the remoting system for access to PhaseLock
            RemotingConfiguration.RegisterWellKnownClientType(
                Type.GetType("EDMPhaseLock.MainForm, EDMPhaseLock"),
                "tcp://localhost:1175/controller.rem"
                );

            mainWindow = new MainWindow(this);
            acquisitor = new Acquisitor();
            mainWindow.textArea.Text = "BlockHead!" + Environment.NewLine;

            liveViewer = new LiveViewer(this);
            liveViewer.Show();

            Application.Run(mainWindow);
        }