//initialization method to instantiate Display public void Initialize(ushort DisplayType, string Address) { try { eDisplayType displayType = (eDisplayType)DisplayType; switch (displayType) { case eDisplayType.PlanarUltraRes: { Display = new PlanarUltraRes(Address); break; } default: { throw new IndexOutOfRangeException("Display type index entered not supported"); } } Display.InputChanged += Display_InputChanged; Display.PowerStateChanged += Display_PowerStateChanged; Display.QuadViewChanged += Display_QuadViewChanged; Display.VolumeChanged += Display_VolumeChanged; Display.Connected += Display_Connected; Display.Disconnected += Display_Disconnected; } catch { throw new IndexOutOfRangeException("Display type index entered not supported"); } }
internal DisplayType(eDisplayType type, string name, DisplayViewModelBase viewModel, bool trackRequired) { Type = type; Name = name; ViewModel = viewModel; TrackRequired = trackRequired; }
public TweakPanelSubComponent(eDisplayType type, eWidth width, int address, int textBoxTag, TextBox textBox) { mType = type; mWidth = width; mAddress = address; mTextBoxTag = textBoxTag; mTextBox = textBox; }