public DialogLedMatrix(LedMatrix ledMatrix)
        {
            this.LedMatrix  = ledMatrix;
            this.MatrixType = LedMatrixDescriptor.LedMatrixTypeDescriptor(this.LedMatrix.MatrixType);
            this.CellShape  = (int)this.LedMatrix.CellShape;
            this.Rows       = this.LedMatrix.Rows;
            this.Columns    = this.LedMatrix.Columns;
            this.ColorRange = PinDescriptor.NumberRange(LedMatrix.MinBitsPerLed, LedMatrix.MaxBitsPerLed);
            this.Colors     = ledMatrix.Colors;
            this.Note       = this.LedMatrix.Note;

            this.DataContext = this;
            this.InitializeComponent();
        }
Ejemplo n.º 2
0
 public LedMatrixDescriptor(CircuitProject circuitProject) : base(circuitProject.LedMatrixSet.Create(LedMatrixType.Individual, 4, 4))
 {
     this.Rows       = 4;
     this.Columns    = 4;
     this.MatrixType = LedMatrixDescriptor.LedMatrixTypeDescriptor(LedMatrixType.Individual);
 }