Example #1
0
        private void numericUpDownPosition_ValueChanged(object sender, EventArgs e)
        {
            labelMrwId.Text = mFirmware.GetMessWertString((int)numericUpDownPosition.Value);

            // flags
            checkBoxDisplay.Checked       = mParam.IsValueDisplayed(0, (int)numericUpDownPosition.Value);
            checkBoxHidden.Checked        = mParam.IsValueHidden(0, (int)numericUpDownPosition.Value);
            checkBoxCalculated.Checked    = mParam.IsValueGroup(0, (int)numericUpDownPosition.Value);
            checkBoxSigned.Checked        = mParam.IsValueSigned(0, (int)numericUpDownPosition.Value);
            checkBoxHex.Checked           = mParam.IsValueHexadecimal(0, (int)numericUpDownPosition.Value);
            numericUpDownDezStellen.Value = mParam.GetValueDecimals(0, (int)numericUpDownPosition.Value);

            // tabpages
            for (int i = 0; i < mParam.GetUsedLanguages(); i++)
            {
                lvuc[i].ValueName = mParam.GetValueName(i, (int)numericUpDownPosition.Value);
                lvuc[i].Unit      = mParam.GetValueUnit(i, (int)numericUpDownPosition.Value, false);
                lvuc[i].Factor    = mParam.GetValueFaktor(i, (int)numericUpDownPosition.Value);
                lvuc[i].Divisor   = mParam.GetValueDivisor(i, (int)numericUpDownPosition.Value);
                lvuc[i].Offset    = mParam.GetValueOffset(i, (int)numericUpDownPosition.Value);
                lvuc[i].AltUnit   = mParam.GetValueUnit(i, (int)numericUpDownPosition.Value, true);
                lvuc[i].UpdataData(false);
            }
        }