Beispiel #1
0
        private void executeAddPoKeys(object o)
        {
            PoKeys poKeys = new PoKeys();

            poKeys.setOwner(this);
            PoKeysList.Add(poKeys);
        }
 public void setOwner(PoKeys poKeys)
 {
     owner = poKeys;
     updateStatus();
     updateMatrixLedConfig();
     if (SevenSegmentDigits != null)
     {
         SevenSegmentDigits = SevenSegmentDigits.OrderBy(digit => digit.Position).ToList();
     }
     updateFalconGaugeDigits();
 }
Beispiel #3
0
        public SevenSegmentMatrixLedConfig GetSevenSegmentConfig(PoKeys poKeys)
        {
            switch (Id)
            {
            case Ids.MatrixLed1: return(poKeys.GetOrCreateSevenSegmentMatrixLed1Config());

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

            default: return(null);
            }
        }
Beispiel #4
0
        public void setOwner(PoKeys pokeys)
        {
            owner = pokeys;

            foreach (PoKeysStepper poKeysStepper in StepperList)
            {
                poKeysStepper.setOwner(this);
            }

            if (StepperList.Count > 0)
            {
                InitializeVID6066();
            }
        }
Beispiel #5
0
 public void setOwner(PoKeys poKeys)
 {
     owner = poKeys;
     updateStatus();
 }