示例#1
0
        private LedMatrix Register(RowId rowId)
        {
            CircuitData data = new CircuitData()
            {
                CircuitId = this.Table.GetField(rowId, LedMatrixData.LedMatrixIdField.Field)
            };
            LedMatrix ledMatrix = this.Create(rowId, this.CircuitProject.CircuitTable.Insert(ref data));

            ledMatrix.UpdatePins();
            return(ledMatrix);
        }
示例#2
0
        public LedMatrix Create(LedMatrixType ledMatrixType, int rows, int columns)
        {
            LedMatrix ledMatrix = this.CreateItem(Guid.NewGuid(),
                                                  ledMatrixType,
                                                  LedMatrixData.CellShapeField.Field.DefaultValue,
                                                  rows,
                                                  columns,
                                                  LedMatrixData.ColorsField.Field.DefaultValue,
                                                  LedMatrixData.NoteField.Field.DefaultValue
                                                  );

            ledMatrix.UpdatePins();
            return(ledMatrix);
        }