Exemple #1
0
        public DisplayState()
        {
            int idx;
            PanelItemArray = new DisplayItemState[NumPanelItems];
            for (idx = 0; idx < NumPanelItems; idx++)
                PanelItemArray[idx] = new DisplayItemState(Utils.Fcns.CheckedFormat("LED{0}", idx + 1));

            ButtonItemArray = new DisplayItemState[NumButtonItems];
            for (idx = 0; idx < NumButtonItems; idx++)
                ButtonItemArray[idx] = new DisplayItemState(Utils.Fcns.CheckedFormat("Button{0}", idx + 1), "White");
        }
Exemple #2
0
        public DisplayState(DisplayState rhs)
        {
            int idx;
            PanelItemArray = new DisplayItemState[rhs.PanelItemArray.Length];
            for (idx = 0; idx < rhs.PanelItemArray.Length; idx++)
                PanelItemArray[idx] = new DisplayItemState(rhs.PanelItemArray[idx]);

            ButtonItemArray = new DisplayItemState[rhs.ButtonItemArray.Length];
            for (idx = 0; idx < rhs.ButtonItemArray.Length; idx++)
                ButtonItemArray[idx] = new DisplayItemState(rhs.ButtonItemArray[idx]);
        }
Exemple #3
0
 public DisplayItemState(DisplayItemState rhs)
 {
     Text = rhs.Text;
     BorderColor = rhs.BorderColor;
     OffBackgroundColor = rhs.OffBackgroundColor;
     OnBackgroundColor = rhs.OnBackgroundColor;
     State = rhs.State;
     LastLampCmdState = rhs.LastLampCmdState;
     IsInternal = rhs.IsInternal;
 }