private void buttonApply_Click(object sender, EventArgs e) { for (int i = 0; i < mParam.GetUsedLanguages(); i++) { lsuc[i].UpdataData(true); mParam.SetBehaveName(i, (int)numericUpDownPosition.Value, lsuc[i].LanguageString); } }
private void buttonApply_Click(object sender, EventArgs e) { for (int i = 0; i < mParam.GetUsedLanguages(); i++) { lsuc[i].UpdataData(true); mParam.SetEventDisplayed(i, (int)numericUpDownPosition.Value, checkBoxDisplay.Checked); mParam.SetEventOrError(i, (int)numericUpDownPosition.Value, checkBoxEvent.Checked); mParam.SetEventHidden(i, (int)numericUpDownPosition.Value, checkBoxHidden.Checked); mParam.SetEventBlueLed(i, (int)numericUpDownPosition.Value, checkBoxBlueLed.Checked); mParam.SetErrorName(i, (int)numericUpDownPosition.Value, lsuc[i].LanguageString); } }
/// <summary>Constructor</summary> /// <param name="param">Parameter set</param> /// <param name="BehavePosition">Position of behave</param> public EditTextBehaveForm(HJS.ECU.Parameter.ParameterSet param, int BehavePosition) { InitializeComponent(); mParam = param; lsuc = new Controls.LanguageStringUserControl[param.GetUsedLanguages()]; for (int i = 0; i < param.GetUsedLanguages(); i++) { lsuc[i] = new Controls.LanguageStringUserControl(param.GetLanguageId(i)); lsuc[i].Dock = DockStyle.Fill; flowLayoutPanelStrings.Controls.Add(lsuc[i]); } numericUpDownPosition.Value = BehavePosition; numericUpDownPosition_ValueChanged(null, EventArgs.Empty); }
private void buttonApply_Click(object sender, EventArgs e) { for (int i = 0; i < mParam.GetUsedLanguages(); i++) { lvuc[i].UpdataData(true); // @todo: returnwerte! mParam.SetValueName(i, (int)numericUpDownPosition.Value, lvuc[i].ValueName); mParam.SetValueUnit(i, (int)numericUpDownPosition.Value, lvuc[i].Unit); mParam.SetValueAltUnit(i, (int)numericUpDownPosition.Value, lvuc[i].AltUnit); mParam.SetValueFactor(i, (int)numericUpDownPosition.Value, lvuc[i].Factor); mParam.SetValueDivisor(i, (int)numericUpDownPosition.Value, lvuc[i].Divisor); mParam.SetValueOffset(i, (int)numericUpDownPosition.Value, lvuc[i].Offset); mParam.SetValueDisplayed(i, (int)numericUpDownPosition.Value, checkBoxDisplay.Checked); mParam.SetValueHidden(i, (int)numericUpDownPosition.Value, checkBoxHidden.Checked); mParam.SetValueGroup(i, (int)numericUpDownPosition.Value, checkBoxCalculated.Checked); mParam.SetValueSigned(i, (int)numericUpDownPosition.Value, checkBoxSigned.Checked); mParam.SetValueHex(i, (int)numericUpDownPosition.Value, checkBoxHex.Checked); mParam.SetValueDecimals(i, (int)numericUpDownPosition.Value, (int)numericUpDownDezStellen.Value); } }
/// <summary>Constructor</summary> /// <param name="param">Parameter set</param> /// <param name="ValuePosition">Position of value</param> public EditTextValueForm(HJS.ECU.Parameter.ParameterSet param, int ValuePosition) { InitializeComponent(); mParam = param; mFirmware = new HJS.ECU.Firmware(param.GetConfigCompatibility()); numericUpDownPosition.Maximum = mFirmware.GetValueNumber(); lvuc = new Controls.LanguageValueUserControl[param.GetUsedLanguages()]; tp = new TabPage[param.GetUsedLanguages()]; for (int i = 0; i < param.GetUsedLanguages(); i++) { lvuc[i] = new Controls.LanguageValueUserControl(); lvuc[i].Dock = DockStyle.Fill; //lvuc[i]. inhalt tp[i] = new TabPage(param.GetLanguageId(i)); tp[i].Controls.Add(lvuc[i]); tabControlText.TabPages.Add(tp[i]); } tabControlText.SelectedTab = tp[0]; numericUpDownPosition.Value = ValuePosition; numericUpDownPosition_ValueChanged(null, EventArgs.Empty); }