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); } }
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); } }
public ctrlModuleParameters(dsModuleStructure3.dtModuleRow moduleRow, dsModuleStructure3 dsModuleStructure) : this() { _moduleRow = moduleRow; _dsModuleStructure = dsModuleStructure; setParameterActions(_dsModuleStructure, _moduleRow); }
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); } }
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); } }
public void addCommand(dsModuleStructure3.dtActionTypeRow actionType) { inputBox = new namedInputTextBox(actionType.description); layoutModuleParametersStop.Controls.Add(inputBox); actionTypeInputBoxDict.Add(actionType, inputBox); }