Пример #1
0
        public static void addRegisterRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_806x_Def_Registers> rList, S6xRegister s6xObject)
        {
            if (db806x == null)
            {
                return;
            }
            if (sadS6x == null)
            {
                return;
            }
            if (rList == null)
            {
                return;
            }
            if (s6xObject == null)
            {
                return;
            }
            if (s6xObject.Skip || !s6xObject.Store)
            {
                return;
            }

            R_806x_Def_Registers rRow = db806x.newRow <R_806x_Def_Registers>();

            rRow.Address.Value       = s6xObject.AddressInt;
            rRow.AddressAdder.Value  = s6xObject.AdditionalAddress10;
            rRow.UniqueAddCode.Value = 0;
            rRow.ByteLabel.Value     = s6xObject.ByteLabel;
            rRow.Comments.Value      = s6xObject.Comments;
            rRow.ShortLabel.Value    = s6xObject.Label;
            rRow.WordLabel.Value     = s6xObject.WordLabel;

            rList.Add(rRow);
        }
Пример #2
0
        public static void addRoutineRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_806x_Def_Routines> rList, S6xRoutine s6xObject)
        {
            if (db806x == null)
            {
                return;
            }
            if (sadS6x == null)
            {
                return;
            }
            if (rList == null)
            {
                return;
            }
            if (s6xObject == null)
            {
                return;
            }
            if (s6xObject.Skip || !s6xObject.Store)
            {
                return;
            }

            R_806x_Def_Routines rRow = db806x.newRow <R_806x_Def_Routines>();

            rRow.Bank.Value          = s6xObject.BankNum;
            rRow.Address.Value       = s6xObject.AddressInt;
            rRow.UniqueAddCode.Value = 0;
            rRow.Comments.Value      = s6xObject.Comments;
            rRow.Label.Value         = s6xObject.Label;
            rRow.ShortLabel.Value    = s6xObject.ShortLabel;

            rList.Add(rRow);
        }
Пример #3
0
        public BitFlagsForm(ref SADS6x s6x, ref S6xRegister register, ref ImageList stateImageList, ref S6xNavCategories navCategories)
        {
            S6x              = s6x;
            s6xReg           = register;
            s6xNavCategories = navCategories;

            slBitFlags = new SortedList();

            if (s6xReg.BitFlags != null)
            {
                foreach (S6xBitFlag s6xObject in s6xReg.BitFlags)
                {
                    if (s6xObject != null)
                    {
                        slBitFlags.Add(s6xObject.UniqueKey, s6xObject);
                    }
                }
            }

            try { Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); }
            catch { }

            this.FormClosing += new FormClosingEventHandler(Form_FormClosing);

            InitializeComponent();

            advElemsTreeView.StateImageList = stateImageList;
        }
Пример #4
0
        public ElemSigForm(ref SADS6x s6x, ref S6xElementSignature eSig)
        {
            S6x     = s6x;
            s6xESig = eSig;

            try { Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); }
            catch { }

            InitializeComponent();
        }
Пример #5
0
        private void closeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            sadBin      = null;
            sadS6x      = null;
            arrCurBytes = null;
            cmpSadBin   = null;
            cmpSadS6x   = null;
            arrCmpBytes = null;

            Dispose();

            GC.Collect();
        }
Пример #6
0
        public static void addRegisterBitFlagRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_806x_Def_RegistersBitFlags> rList, S6xRegister s6xObject)
        {
            if (db806x == null)
            {
                return;
            }
            if (sadS6x == null)
            {
                return;
            }
            if (rList == null)
            {
                return;
            }
            if (s6xObject == null)
            {
                return;
            }
            if (s6xObject.Skip || !s6xObject.Store)
            {
                return;
            }
            if (!s6xObject.isBitFlags)
            {
                return;
            }
            if (s6xObject.BitFlags == null)
            {
                return;
            }

            foreach (S6xBitFlag s6xBF in s6xObject.BitFlags)
            {
                if (s6xBF.Skip)
                {
                    continue;
                }

                R_806x_Def_RegistersBitFlags rRow = db806x.newRow <R_806x_Def_RegistersBitFlags>();
                rRow.RegisterAddress.Value       = s6xObject.AddressInt;
                rRow.RegisterAddressAdder.Value  = s6xObject.AdditionalAddress10;
                rRow.RegisterUniqueAddCode.Value = 0;
                rRow.Position.Value      = s6xBF.Position;
                rRow.UniqueAddCode.Value = 0;
                rRow.Comments.Value      = s6xBF.Comments;
                rRow.Label.Value         = s6xBF.Comments;
                rRow.ShortLabel.Value    = s6xBF.Comments;

                rList.Add(rRow);
            }
        }
Пример #7
0
        public ConversionRepoForm(string filePath, ref SADS6x s6x)
        {
            InitializeComponent();

            repoFilePath = filePath;
            sadS6x       = s6x;

            try { Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); }
            catch { }

            repoRepository = (RepositoryConversion)ToolsXml.DeserializeFile(repoFilePath, typeof(RepositoryConversion));
            if (repoRepository == null)
            {
                repoRepository = new RepositoryConversion();
            }
            repoRepository.isSaved = true;

            bindingSource            = new BindingSource();
            bindingSource.DataSource = repoRepository.Items.FindAll(searchRepositoryConversionItem);

            repoListBox.DisplayMember = "Title";
            repoListBox.DataSource    = bindingSource;

            this.FormClosing += new FormClosingEventHandler(RepositoryForm_FormClosing);

            searchTextBox.KeyPress           += new KeyPressEventHandler(searchTextBox_KeyPress);
            repoListBox.MouseMove            += new MouseEventHandler(repoListBox_MouseMove);
            repoListBox.MouseDown            += new MouseEventHandler(repoListBox_MouseDown);
            repoListBox.MouseClick           += new MouseEventHandler(repoListBox_MouseClick);
            repoListBox.SelectedIndexChanged += new EventHandler(repoListBox_SelectedIndexChanged);

            titleTextBox.ModifiedChanged       += new EventHandler(RepoItemTextBox_ModifiedChanged);
            iFormulaTextBox.ModifiedChanged    += new EventHandler(RepoItemTextBox_ModifiedChanged);
            commentsTextBox.ModifiedChanged    += new EventHandler(RepoItemTextBox_ModifiedChanged);
            informationTextBox.ModifiedChanged += new EventHandler(RepoItemTextBox_ModifiedChanged);

            titleTextBox.KeyDown       += new KeyEventHandler(RepoItemTextBox_KeyDown);
            iFormulaTextBox.KeyDown    += new KeyEventHandler(RepoItemTextBox_KeyDown);
            commentsTextBox.KeyDown    += new KeyEventHandler(RepoItemTextBox_KeyDown);
            informationTextBox.KeyDown += new KeyEventHandler(RepoItemTextBox_KeyDown);

            titleTextBox.Leave       += new EventHandler(RepoItemTextBox_Leave);
            iFormulaTextBox.Leave    += new EventHandler(RepoItemTextBox_Leave);
            commentsTextBox.Leave    += new EventHandler(RepoItemTextBox_Leave);
            informationTextBox.Leave += new EventHandler(RepoItemTextBox_Leave);

            iFormulaTextBox.TextChanged += new EventHandler(iFormulaTextBox_TextChanged);

            repoListBox.SelectedItem = null;
            repoListBox_SelectedIndexChanged(repoListBox, new EventArgs());
        }
Пример #8
0
        public static void addRoutineArgsRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_806x_Def_RoutinesArgs> rList, S6xRoutine s6xObject)
        {
            if (db806x == null)
            {
                return;
            }
            if (sadS6x == null)
            {
                return;
            }
            if (rList == null)
            {
                return;
            }
            if (s6xObject == null)
            {
                return;
            }
            if (s6xObject.Skip || !s6xObject.Store)
            {
                return;
            }
            if (!s6xObject.isAdvanced)
            {
                return;
            }
            if (s6xObject.InputArguments == null)
            {
                return;
            }

            foreach (S6xRoutineInputArgument s6xArg in s6xObject.InputArguments)
            {
                R_806x_Def_RoutinesArgs rRow = db806x.newRow <R_806x_Def_RoutinesArgs>();
                rRow.RoutineBank.Value          = s6xObject.BankNum;
                rRow.RoutineAddress.Value       = s6xObject.AddressInt;
                rRow.RoutineUniqueAddCode.Value = 0;
                rRow.Byte.Value       = !s6xArg.Word;
                rRow.Encryption.Value = s6xArg.Encryption;
                rRow.Pointer.Value    = s6xArg.Pointer;
                rRow.Position.Value   = s6xArg.Position;

                rList.Add(rRow);
            }
        }
Пример #9
0
        public static void addFunctionRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_806x_Def_Functions> rList, S6xFunction s6xObject)
        {
            if (db806x == null)
            {
                return;
            }
            if (sadS6x == null)
            {
                return;
            }
            if (rList == null)
            {
                return;
            }
            if (s6xObject == null)
            {
                return;
            }
            if (s6xObject.Skip || !s6xObject.Store)
            {
                return;
            }

            R_806x_Def_Functions rRow = db806x.newRow <R_806x_Def_Functions>();

            rRow.Bank.Value                  = s6xObject.BankNum;
            rRow.Address.Value               = s6xObject.AddressInt;
            rRow.UniqueAddCode.Value         = s6xObject.DuplicateNum;
            rRow.Byte.Value                  = s6xObject.ByteInput;
            rRow.Comments.Value              = s6xObject.Comments;
            rRow.InputScaleExpression.Value  = s6xObject.InputScaleExpression;
            rRow.InputScalePrecision.Value   = s6xObject.InputScalePrecision;
            rRow.InputSigned.Value           = s6xObject.SignedInput;
            rRow.InputUnits.Value            = s6xObject.InputUnits;
            rRow.Label.Value                 = s6xObject.Label;
            rRow.OutputScaleExpression.Value = s6xObject.OutputScaleExpression;
            rRow.OutputScalePrecision.Value  = s6xObject.OutputScalePrecision;
            rRow.OutputSigned.Value          = s6xObject.SignedOutput;
            rRow.OutputUnits.Value           = s6xObject.OutputUnits;
            rRow.Rows.Value                  = s6xObject.RowsNumber;
            rRow.ShortLabel.Value            = s6xObject.ShortLabel;

            rList.Add(rRow);
        }
Пример #10
0
        public SearchForm(ref SADS6x mainSadS6x, ref TreeView mainElemsTreeView)
        {
            sadS6x        = mainSadS6x;
            elemsTreeView = mainElemsTreeView;

            InitializeComponent();

            try { Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); }
            catch { }

            this.FormClosing += new FormClosingEventHandler(SearchForm_FormClosing);

            searchTextBox.KeyPress        += new KeyPressEventHandler(searchTextBox_KeyPress);
            searchTreeView.NodeMouseClick += new TreeNodeMouseClickEventHandler(searchTreeView_NodeMouseClick);
            searchTreeView.AfterSelect    += new TreeViewEventHandler(searchTreeView_AfterSelect);

            mainUpdateTimer          = new System.Windows.Forms.Timer();
            mainUpdateTimer.Enabled  = false;
            mainUpdateTimer.Interval = 100;
            mainUpdateTimer.Tick    += new EventHandler(mainUpdateTimer_Tick);
        }
Пример #11
0
        public static void addScalarRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_806x_Def_Scalars> rList, S6xScalar s6xObject)
        {
            if (db806x == null)
            {
                return;
            }
            if (sadS6x == null)
            {
                return;
            }
            if (rList == null)
            {
                return;
            }
            if (s6xObject == null)
            {
                return;
            }
            if (s6xObject.Skip || !s6xObject.Store)
            {
                return;
            }

            R_806x_Def_Scalars rRow = db806x.newRow <R_806x_Def_Scalars>();

            rRow.Bank.Value            = s6xObject.BankNum;
            rRow.Address.Value         = s6xObject.AddressInt;
            rRow.UniqueAddCode.Value   = s6xObject.DuplicateNum;
            rRow.Byte.Value            = s6xObject.Byte;
            rRow.Comments.Value        = s6xObject.Comments;
            rRow.Label.Value           = s6xObject.Label;
            rRow.ScaleExpression.Value = s6xObject.ScaleExpression;
            rRow.ScalePrecision.Value  = s6xObject.ScalePrecision;
            rRow.ShortLabel.Value      = s6xObject.ShortLabel;
            rRow.Signed.Value          = s6xObject.Signed;
            rRow.Units.Value           = s6xObject.Units;

            rList.Add(rRow);
        }
Пример #12
0
        public BitFlagsForm(ref SADS6x s6x, ref S6xRegister register)
        {
            S6x    = s6x;
            s6xReg = register;

            slBitFlags = new SortedList();

            if (s6xReg.BitFlags != null)
            {
                foreach (S6xBitFlag s6xObject in s6xReg.BitFlags)
                {
                    if (s6xObject != null)
                    {
                        slBitFlags.Add(s6xObject.UniqueKey, s6xObject);
                    }
                }
            }

            try { Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); }
            catch { }

            InitializeComponent();
        }
Пример #13
0
        public static void addStructureRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_806x_Def_Structures> rList, S6xStructure s6xObject)
        {
            if (db806x == null)
            {
                return;
            }
            if (sadS6x == null)
            {
                return;
            }
            if (rList == null)
            {
                return;
            }
            if (s6xObject == null)
            {
                return;
            }
            if (s6xObject.Skip || !s6xObject.Store)
            {
                return;
            }

            R_806x_Def_Structures rRow = db806x.newRow <R_806x_Def_Structures>();

            rRow.Bank.Value                = s6xObject.BankNum;
            rRow.Address.Value             = s6xObject.AddressInt;
            rRow.UniqueAddCode.Value       = s6xObject.DuplicateNum;
            rRow.Comments.Value            = s6xObject.Comments;
            rRow.Label.Value               = s6xObject.Label;
            rRow.Number.Value              = s6xObject.Number;
            rRow.ShortLabel.Value          = s6xObject.ShortLabel;
            rRow.StructureDefinition.Value = s6xObject.StructDef;

            rList.Add(rRow);
        }
 public static void updateScalarBitFlagRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, R_SAD806x_Def_ScalarsBitFlags rRow, S6xScalar s6xObject, S6xBitFlag s6xBitFlag)
 {
     SQLite806xToolsSAD806xV10.updateScalarBitFlagRow(ref db806x, ref sadS6x, rRow, s6xObject, s6xBitFlag);
 }
 public static object addScalarBitFlagRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_SAD806x_Def_ScalarsBitFlags> rList, S6xScalar s6xObject, S6xBitFlag s6xBitFlag)
 {
     return(SQLite806xToolsSAD806xV10.addScalarBitFlagRow(ref db806x, ref sadS6x, ref rList, s6xObject, s6xBitFlag));
 }
 public static object[] setSignatureElementInternalStructureS6x(ref SADS6x sadS6x, R_SAD806x_SignaturesElementsInternalStructures rRow)
 {
     return(SQLite806xToolsSAD806xV10.setSignatureElementInternalStructureS6x(ref sadS6x, rRow));
 }
 public static object[] setSignatureRoutineInternalTableS6x(ref SADS6x sadS6x, R_SAD806x_SignaturesRoutinesInternalTables rRow)
 {
     return(SQLite806xToolsSAD806xV10.setSignatureRoutineInternalTableS6x(ref sadS6x, rRow));
 }
 public static object[] setSignatureRoutineInputFunctionS6x(ref SADS6x sadS6x, R_SAD806x_SignaturesRoutinesInputFunctions rRow)
 {
     return(SQLite806xToolsSAD806xV10.setSignatureRoutineInputFunctionS6x(ref sadS6x, rRow));
 }
 public static void updateFunctionRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, R_SAD806x_Def_Functions rRow, S6xFunction s6xObject)
 {
     SQLite806xToolsSAD806xV10.updateFunctionRow(ref db806x, ref sadS6x, rRow, s6xObject);
 }
 public static object addSignatureElementInternalStructureRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_SAD806x_SignaturesElementsInternalStructures> rList, S6xElementSignature s6xObject)
 {
     return(SQLite806xToolsSAD806xV10.addSignatureElementInternalStructureRow(ref db806x, ref sadS6x, ref rList, s6xObject));
 }
 public static object[] setOtherS6x(ref SADS6x sadS6x, R_SAD806x_Def_Others rRow)
 {
     return(SQLite806xToolsSAD806xV10.setOtherS6x(ref sadS6x, rRow));
 }
 public static object[] setRoutineInputStructureS6x(ref SADS6x sadS6x, R_SAD806x_Def_RoutinesInputStructures rRow)
 {
     return(SQLite806xToolsSAD806xV10.setRoutineInputStructureS6x(ref sadS6x, rRow));
 }
 public static object addFunctionRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_SAD806x_Def_Functions> rList, S6xFunction s6xObject)
 {
     return(SQLite806xToolsSAD806xV10.addFunctionRow(ref db806x, ref sadS6x, ref rList, s6xObject));
 }
 public static object[] setFunctionS6x(ref SADS6x sadS6x, R_SAD806x_Def_Functions rRow)
 {
     return(SQLite806xToolsSAD806xV10.setFunctionS6x(ref sadS6x, rRow));
 }
 public static void updateTableRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, R_SAD806x_Def_Tables rRow, S6xTable s6xObject)
 {
     SQLite806xToolsSAD806xV10.updateTableRow(ref db806x, ref sadS6x, rRow, s6xObject);
 }
 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 void updateSignatureElementInternalStructureRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, R_SAD806x_SignaturesElementsInternalStructures rRow, S6xElementSignature s6xObject)
 {
     SQLite806xToolsSAD806xV10.updateSignatureElementInternalStructureRow(ref db806x, ref sadS6x, rRow, s6xObject);
 }
 public static object[] setRegisterBitFlagS6x(ref SADS6x sadS6x, R_SAD806x_Def_RegistersBitFlags rRow)
 {
     return(SQLite806xToolsSAD806xV10.setRegisterBitFlagS6x(ref sadS6x, rRow));
 }
 public static object addTableRow(ref SQLite806xDB db806x, ref SADS6x sadS6x, ref List <R_SAD806x_Def_Tables> rList, S6xTable s6xObject)
 {
     return(SQLite806xToolsSAD806xV10.addTableRow(ref db806x, ref sadS6x, ref rList, s6xObject));
 }
 public static void setPropertiesS6x(ref SADS6x sadS6x, R_SAD806x_Properties rRow)
 {
     SQLite806xToolsSAD806xV10.setPropertiesS6x(ref sadS6x, rRow);
 }