コード例 #1
0
        public void setParameterActions(dsModuleStructure3 dsModuleStructure, dsModuleStructure3.dtModuleRow module)
        {
            actionTypeDict = new Dictionary <dsModuleStructure3.dtModuleTypeActionTypeRow, ctrlCommand>();

            _dsModuleStructure = dsModuleStructure;

            dsModuleStructure3.dtModuleTypeActionTypeRow[] moduleTypeActionTypeRows = module.dtModuleTypeRow.GetdtModuleTypeActionTypeRows();
            foreach (dsModuleStructure3.dtModuleTypeActionTypeRow moduleTypeActionTypeRow in moduleTypeActionTypeRows)
            {
                ctrlCommand command = new ctrlCommand();

                foreach (KeyValuePair <dsModuleStructure3.dtModuleTypeActionTypeRow, ctrlCommand> kvp in actionTypeDict)
                {
                    if (moduleTypeActionTypeRow.fk_action_value_type_id == kvp.Key.fk_action_value_type_id)
                    {
                        command = kvp.Value;
                    }
                }

                if (!command.isInitialized())
                {
                    command.init(moduleTypeActionTypeRow.dtActionValueTypeRow.description);
                    actionTypeDict.Add(moduleTypeActionTypeRow, command);
                }
                command.addCommand(moduleTypeActionTypeRow.dtActionTypeRow);
            }

            foreach (ctrlCommand commands in actionTypeDict.Values)
            {
                commands.Dock = DockStyle.Top;
                layoutMainPanel.Controls.Add(commands);
            }
        }
コード例 #2
0
        public void setParameterActions(dsModuleStructure3 dsModuleStructure, dsModuleStructure3.dtModuleRow module)
        {
            actionTypeDict = new Dictionary<dsModuleStructure3.dtModuleTypeActionTypeRow, ctrlCommand>();

            _dsModuleStructure = dsModuleStructure;

            dsModuleStructure3.dtModuleTypeActionTypeRow[] moduleTypeActionTypeRows = module.dtModuleTypeRow.GetdtModuleTypeActionTypeRows();
            foreach (dsModuleStructure3.dtModuleTypeActionTypeRow moduleTypeActionTypeRow in moduleTypeActionTypeRows)
            {
                ctrlCommand command = new ctrlCommand();

                foreach (KeyValuePair<dsModuleStructure3.dtModuleTypeActionTypeRow, ctrlCommand> kvp in actionTypeDict)
                {
                    if (moduleTypeActionTypeRow.fk_action_value_type_id == kvp.Key.fk_action_value_type_id)
                    {
                        command = kvp.Value;
                    }
                }

                if (!command.isInitialized())
                {
                    command.init(moduleTypeActionTypeRow.dtActionValueTypeRow.description);
                    actionTypeDict.Add(moduleTypeActionTypeRow, command);
                }
                command.addCommand(moduleTypeActionTypeRow.dtActionTypeRow);
            }

            foreach (ctrlCommand commands in actionTypeDict.Values)
            {
                commands.Dock = DockStyle.Top;
                layoutMainPanel.Controls.Add(commands);
            }
        }
コード例 #3
0
        public ctrlModuleParameters(dsModuleStructure3.dtModuleRow moduleRow,
                                    dsModuleStructure3 dsModuleStructure)
            : this()
        {
            _moduleRow         = moduleRow;
            _dsModuleStructure = dsModuleStructure;

            setParameterActions(_dsModuleStructure, _moduleRow);
        }
コード例 #4
0
        public ctrlModuleParameters(dsModuleStructure3.dtModuleRow moduleRow,
            dsModuleStructure3 dsModuleStructure)
            : this()
        {
            _moduleRow = moduleRow;
            _dsModuleStructure = dsModuleStructure;

            setParameterActions(_dsModuleStructure, _moduleRow);
        }
コード例 #5
0
        public optionJoypad(dsModuleStructure3 dsModuleStructure, BindingSource bsModule) : this()
        {
            this.dsModuleStructure1 = dsModuleStructure;
            this.bs1       = bsModule;
            bs1.DataSource = dsModuleStructure;

            if (labelX.Text == "X :   ")
            {
                taModule1.Fill(this.dsModuleStructure1.dtModule);
            }
        }
コード例 #6
0
        public optionJoypad(dsModuleStructure3 dsModuleStructure,BindingSource bsModule)
            : this()
        {
            this.dsModuleStructure1 = dsModuleStructure;
            this.bs1 = bsModule;
            bs1.DataSource = dsModuleStructure;

            if (labelX.Text== "X :   ")
            {
                taModule1.Fill(this.dsModuleStructure1.dtModule);
            }
        }
コード例 #7
0
 public void addCommand(dsModuleStructure3.dtActionTypeRow actionType)
 {
     inputBox = new namedInputTextBox(actionType.description);
     layoutModuleParametersStop.Controls.Add(inputBox);
     actionTypeInputBoxDict.Add(actionType, inputBox);
 }