public static void updateSignatureElementInternalScalarBitFlagRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, R_SAD806x_SignaturesElementsInternalScalarsBitFlags rRow, S6xElementSignature s6xObject, S6xRoutineInternalScalar s6xSubObject, S6xBitFlag s6xBF)
 {
     SQLite806xToolsSAD806xV10.updateSignatureElementInternalScalarBitFlagRow(ref db806x, ref sadS6x, rRow, s6xObject, s6xSubObject, s6xBF);
 }
 public static object addSignatureElementInternalScalarBitFlagRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_SAD806x_SignaturesElementsInternalScalarsBitFlags> rList, S6xElementSignature s6xObject, S6xRoutineInternalScalar s6xSubObject, S6xBitFlag s6xBF)
 {
     return(SQLite806xToolsSAD806xV10.addSignatureElementInternalScalarBitFlagRow(ref db806x, ref sadS6x, ref rList, s6xObject, s6xSubObject, s6xBF));
 }
 public static void updateSignatureRoutineInternalScalarRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, R_SAD806x_SignaturesRoutinesInternalScalars rRow, S6xSignature s6xObject, S6xRoutineInternalScalar s6xSubObject)
 {
     SQLite806xToolsSAD806xV10.updateSignatureRoutineInternalScalarRow(ref db806x, ref sadS6x, rRow, s6xObject, s6xSubObject);
 }
 public static object addSignatureRoutineInternalScalarRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_SAD806x_SignaturesRoutinesInternalScalars> rList, S6xSignature s6xObject, S6xRoutineInternalScalar s6xSubObject)
 {
     return(SQLite806xToolsSAD806xV10.addSignatureRoutineInternalScalarRow(ref db806x, ref sadS6x, ref rList, s6xObject, s6xSubObject));
 }
Пример #5
0
        private void updateElem()
        {
            string categ     = string.Empty;
            string uniqueKey = string.Empty;
            string label     = string.Empty;
            string comments  = string.Empty;

            switch (elemTabControl.SelectedTab.Name)
            {
            case "structureTabPage":
                categ = TreeCategStructureNodeName;
                break;

            case "tableTabPage":
                categ = TreeCategTableNodeName;
                break;

            case "functionTabPage":
                categ = TreeCategFunctionNodeName;
                break;

            case "scalarTabPage":
                categ = TreeCategScalarNodeName;
                break;

            default:
                return;
            }

            if (!checkElem(categ))
            {
                MessageBox.Show("Invalid values are present, please correct them to continue.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            s6xESig.for8061    = (for8061ComboBox.SelectedIndex == 0);
            s6xESig.forBankNum = forBankTextBox.Text;

            switch (categ)
            {
            case TreeCategStructureNodeName:
                S6xRoutineInternalStructure sigIntStr = s6xESig.Structure;
                sigIntStr.Number    = Convert.ToInt32(structureNumTextBox.Text);
                sigIntStr.StructDef = structureStructTextBox.Text;

                sigIntStr.ShortLabel     = shortLabelTextBox.Text;
                sigIntStr.Label          = labelTextBox.Text;
                sigIntStr.Comments       = commentsTextBox.Text;
                sigIntStr.OutputComments = outputCommentsCheckBox.Checked;

                uniqueKey = sigIntStr.UniqueKey;
                label     = sigIntStr.Label;
                comments  = sigIntStr.Comments;

                sigIntStr = null;
                break;

            case TreeCategTableNodeName:
                S6xRoutineInternalTable sigIntTbl = s6xESig.Table;
                sigIntTbl.VariableColsNumber   = tableColsTextBox.Text;
                sigIntTbl.CellsUnits           = tableCellsUnitsTextBox.Text;
                sigIntTbl.ColsUnits            = tableColsUnitsTextBox.Text;
                sigIntTbl.RowsNumber           = Convert.ToInt32(tableRowsTextBox.Text);
                sigIntTbl.RowsUnits            = tableRowsUnitsTextBox.Text;
                sigIntTbl.CellsScaleExpression = tableScaleTextBox.Text;
                sigIntTbl.CellsScalePrecision  = (int)tableScalePrecNumericUpDown.Value;
                sigIntTbl.SignedOutput         = tableSignedCheckBox.Checked;
                sigIntTbl.WordOutput           = tableWordCheckBox.Checked;

                sigIntTbl.ShortLabel     = shortLabelTextBox.Text;
                sigIntTbl.Label          = labelTextBox.Text;
                sigIntTbl.Comments       = commentsTextBox.Text;
                sigIntTbl.OutputComments = outputCommentsCheckBox.Checked;

                uniqueKey = sigIntTbl.UniqueKey;
                label     = sigIntTbl.Label;
                comments  = sigIntTbl.Comments;

                sigIntTbl = null;
                break;

            case TreeCategFunctionNodeName:
                S6xRoutineInternalFunction sigIntFunc = s6xESig.Function;
                sigIntFunc.ByteInput             = functionByteCheckBox.Checked;
                sigIntFunc.RowsNumber            = Convert.ToInt32(functionRowsTextBox.Text);
                sigIntFunc.InputScaleExpression  = functionScaleInputTextBox.Text;
                sigIntFunc.OutputScaleExpression = functionScaleOutputTextBox.Text;
                sigIntFunc.InputScalePrecision   = (int)functionScalePrecInputNumericUpDown.Value;
                sigIntFunc.OutputScalePrecision  = (int)functionScalePrecOutputNumericUpDown.Value;
                sigIntFunc.SignedInput           = functionSignedInputCheckBox.Checked;
                sigIntFunc.SignedOutput          = functionSignedOutputCheckBox.Checked;
                sigIntFunc.InputUnits            = functionUnitsInputTextBox.Text;
                sigIntFunc.OutputUnits           = functionUnitsOutputTextBox.Text;

                sigIntFunc.ShortLabel     = shortLabelTextBox.Text;
                sigIntFunc.Label          = labelTextBox.Text;
                sigIntFunc.Comments       = commentsTextBox.Text;
                sigIntFunc.OutputComments = outputCommentsCheckBox.Checked;

                uniqueKey = sigIntFunc.UniqueKey;
                label     = sigIntFunc.Label;
                comments  = sigIntFunc.Comments;

                sigIntFunc = null;
                break;

            case TreeCategScalarNodeName:
                S6xRoutineInternalScalar sigIntScal = s6xESig.Scalar;
                sigIntScal.Byte            = scalarByteCheckBox.Checked;
                sigIntScal.ScaleExpression = scalarScaleTextBox.Text;
                sigIntScal.ScalePrecision  = (int)scalarScalePrecNumericUpDown.Value;
                sigIntScal.Signed          = scalarSignedCheckBox.Checked;
                sigIntScal.Units           = scalarUnitsTextBox.Text;

                sigIntScal.ShortLabel     = shortLabelTextBox.Text;
                sigIntScal.Label          = labelTextBox.Text;
                sigIntScal.Comments       = commentsTextBox.Text;
                sigIntScal.OutputComments = outputCommentsCheckBox.Checked;
                sigIntScal.InlineComments = scalarInlineCommentsCheckBox.Checked;

                uniqueKey = sigIntScal.UniqueKey;
                label     = sigIntScal.Label;
                comments  = sigIntScal.Comments;

                if (scalarBitFlagsButton.Tag != null)
                {
                    S6xScalar s6xScalar = (S6xScalar)scalarBitFlagsButton.Tag;
                    scalarBitFlagsButton.Tag = null;
                    if (s6xScalar.BitFlags != null)
                    {
                        sigIntScal.BitFlags = (S6xBitFlag[])s6xScalar.BitFlags.Clone();
                    }
                    s6xScalar = null;
                }

                sigIntScal = null;
                break;

            default:
                return;
            }
        }
Пример #6
0
        private void showElem()
        {
            if (currentTreeNode == null)
            {
                return;
            }
            if (!currentTreeNode.Checked)
            {
                return;
            }

            if (s6xESig.for8061)
            {
                for8061ComboBox.SelectedIndex = 0;
            }
            else
            {
                for8061ComboBox.SelectedIndex = 1;
            }
            forBankTextBox.Text = (string)s6xESig.forBankNum;

            switch (currentTreeNode.Name)
            {
            case TreeCategStructureNodeName:
                S6xRoutineInternalStructure sigIntStr = s6xESig.Structure;
                structureNumTextBox.Text = sigIntStr.Number.ToString();

                // Windows 10 1809 (10.0.17763) Issue
                structureStructTextBox.Clear();
                structureStructTextBox.Multiline = false;
                structureStructTextBox.Multiline = true;

                structureStructTextBox.Text = sigIntStr.StructDef;

                shortLabelTextBox.Text = sigIntStr.ShortLabel;
                labelTextBox.Text      = sigIntStr.Label;

                // Windows 10 1809 (10.0.17763) Issue
                commentsTextBox.Clear();
                commentsTextBox.Multiline = false;
                commentsTextBox.Multiline = true;

                commentsTextBox.Text           = sigIntStr.Comments;
                outputCommentsCheckBox.Checked = sigIntStr.OutputComments;

                sigIntStr = null;
                break;

            case TreeCategTableNodeName:
                S6xRoutineInternalTable sigIntTbl = s6xESig.Table;
                tableCellsUnitsTextBox.Text       = sigIntTbl.CellsUnits;
                tableColsTextBox.Text             = sigIntTbl.VariableColsNumber;
                tableColsUnitsTextBox.Text        = sigIntTbl.ColsUnits;
                tableRowsTextBox.Text             = sigIntTbl.RowsNumber.ToString();
                tableRowsUnitsTextBox.Text        = sigIntTbl.RowsUnits;
                tableScaleTextBox.Text            = sigIntTbl.CellsScaleExpression;
                tableScalePrecNumericUpDown.Value = sigIntTbl.CellsScalePrecision;
                tableSignedCheckBox.Checked       = sigIntTbl.SignedOutput;
                tableWordCheckBox.Checked         = sigIntTbl.WordOutput;

                shortLabelTextBox.Text = sigIntTbl.ShortLabel;
                labelTextBox.Text      = sigIntTbl.Label;

                // Windows 10 1809 (10.0.17763) Issue
                commentsTextBox.Clear();
                commentsTextBox.Multiline = false;
                commentsTextBox.Multiline = true;

                commentsTextBox.Text           = sigIntTbl.Comments;
                outputCommentsCheckBox.Checked = sigIntTbl.OutputComments;

                sigIntTbl = null;
                break;

            case TreeCategFunctionNodeName:
                S6xRoutineInternalFunction sigIntFunc = s6xESig.Function;
                functionByteCheckBox.Checked               = sigIntFunc.ByteInput;
                functionRowsTextBox.Text                   = sigIntFunc.RowsNumber.ToString();
                functionScaleInputTextBox.Text             = sigIntFunc.InputScaleExpression;
                functionScaleOutputTextBox.Text            = sigIntFunc.OutputScaleExpression;
                functionScalePrecInputNumericUpDown.Value  = sigIntFunc.InputScalePrecision;
                functionScalePrecOutputNumericUpDown.Value = sigIntFunc.OutputScalePrecision;
                functionSignedInputCheckBox.Checked        = sigIntFunc.SignedInput;
                functionSignedOutputCheckBox.Checked       = sigIntFunc.SignedOutput;
                functionUnitsInputTextBox.Text             = sigIntFunc.InputUnits;
                functionUnitsOutputTextBox.Text            = sigIntFunc.OutputUnits;

                shortLabelTextBox.Text = sigIntFunc.ShortLabel;
                labelTextBox.Text      = sigIntFunc.Label;

                // Windows 10 1809 (10.0.17763) Issue
                commentsTextBox.Clear();
                commentsTextBox.Multiline = false;
                commentsTextBox.Multiline = true;

                commentsTextBox.Text           = sigIntFunc.Comments;
                outputCommentsCheckBox.Checked = sigIntFunc.OutputComments;

                sigIntFunc = null;
                break;

            case TreeCategScalarNodeName:
                S6xRoutineInternalScalar sigIntScal = s6xESig.Scalar;
                scalarBitFlagsCheckBox.Checked     = sigIntScal.isBitFlags;
                scalarByteCheckBox.Checked         = sigIntScal.Byte;
                scalarScaleTextBox.Text            = sigIntScal.ScaleExpression;
                scalarScalePrecNumericUpDown.Value = sigIntScal.ScalePrecision;
                scalarSignedCheckBox.Checked       = sigIntScal.Signed;
                scalarUnitsTextBox.Text            = sigIntScal.Units;

                shortLabelTextBox.Text = sigIntScal.ShortLabel;
                labelTextBox.Text      = sigIntScal.Label;

                // Windows 10 1809 (10.0.17763) Issue
                commentsTextBox.Clear();
                commentsTextBox.Multiline = false;
                commentsTextBox.Multiline = true;

                commentsTextBox.Text                 = sigIntScal.Comments;
                outputCommentsCheckBox.Checked       = sigIntScal.OutputComments;
                scalarInlineCommentsCheckBox.Checked = sigIntScal.InlineComments;

                scalarBitFlagsButton.Tag = null;

                sigIntScal = null;
                break;

            default:
                return;
            }
        }