Exemple #1
0
        private void ExecuteAddPoKeys(object o)
        {
            PoKeys poKeys = new PoKeys();

            poKeys.SetOwner(this);
            PoKeysList.Add(poKeys);
        }
 internal void SetOwner(PoKeys poKeys)
 {
     owner = poKeys;
     UpdateStatus();
     UpdateMatrixLedConfig();
     if (SevenSegmentDigits != null)
     {
         SevenSegmentDigits = SevenSegmentDigits.OrderBy(digit => digit.Position).ToList();
     }
     UpdateFalconGaugeDigits();
 }
Exemple #3
0
        public SevenSegmentMatrixLedConfig GetSevenSegmentConfig(PoKeys pokeys)
        {
            switch (Id)
            {
            case Ids.MatrixLed1:
                return(pokeys.GetOrCreateSevenSegmentMatrixLed1Config());

            case Ids.MatrixLed2:
                return(pokeys.GetOrCreateSevenSegmentMatrixLed2Config());

            default:
                return(null);
            }
        }
Exemple #4
0
 internal void SetOwner(PoKeys poKeys)
 {
     owner = poKeys;
     UpdateStatus();
 }
Exemple #5
0
 public void SetOwner(PoKeys pokeys)
 {
     owner = pokeys;
     UpdateStatus();
 }