private void InitUserControlPanels()
        {
            // Init main control panel
            mainControlsPanel = new MainControlsPanel(controller, controller.Actuators.Count);

            // Implicitly switch to main control panel view
            SwitchUserControl(mainControlsPanel);

            // For each actuator found, create a new settings user control
            switch (controller.Actuators.Count)
            {
            case 1:
                actuatorOneSettings = new ActuatorSettingsPanel(Actuators.List[0]);
                break;

            case 2:
                actuatorOneSettings = new ActuatorSettingsPanel(Actuators.List[0]);
                actuatorTwoSettings = new ActuatorSettingsPanel(Actuators.List[1]);
                break;

            case 3:
                actuatorOneSettings   = new ActuatorSettingsPanel(Actuators.List[0]);
                actuatorTwoSettings   = new ActuatorSettingsPanel(Actuators.List[1]);
                actuatorThreeSettings = new ActuatorSettingsPanel(Actuators.List[2]);
                break;
            }

            // Init data visualizer
            actuatorParametersConfigurationPanel = new ActuatorParametersConfigurationPanel(Actuators.List);

            // Init app settings
            appSettingsPanel = new ApplicationSettingsPanel();
        }
示例#2
0
 public ApplicationConfigurationManager(MainControlsPanel mcp)
 {
     this.mcp = mcp;
     ConfigureSettings();
 }
 public ActuatorMoveContinuouslyAxisZ(MainController controller, ActuatorPositionSoftwareLimits apsl, MainControlsPanel mcp)
 {
     InitializeComponent();
     this.mcc       = new MoveContinuouslyController(mcp, controller, apsl);
     this.listIndex = mcc.GetListIndexByAxis(Enums.Axis.Z);
     this.apsl      = apsl;
 }
 public MoveContinuouslyController(MainControlsPanel mcp, MainController controller, ActuatorPositionSoftwareLimits apsl)
 {
     this.mcp        = mcp;
     this.controller = controller;
     this.apsl       = apsl;
 }