public BootPageViewController(BaseUIController uiController, uint pageNumber, string title) : base(uiController, pageNumber, title) { _progressGuage = new UIGuage(this, Analogs.PageBootProgressLevel); _statusLabel = new UILabel(this, Serials.PageBootStatus); uiController.System.SystemStartupProgressChange += SystemOnSystemStartupProgressChange; }
public MpcVolume(MPC3x101Touchscreen mpc) { _volUpBtn = new UIButton(mpc, 2) { HoldTime = TimeSpan.FromSeconds(0.5) }; _volUpBtn.ButtonEvent += OnOtherButtonEvent; _volDownBtn = new UIButton(mpc, 3) { HoldTime = TimeSpan.FromSeconds(0.5) }; _volDownBtn.ButtonEvent += OnOtherButtonEvent; _muteBtn = new UIButton(mpc, 1); _muteBtn.ButtonEvent += OnOtherButtonEvent; _volGuage = new UIGuage(mpc, 1); }
public MpcVolume(MpcUIController mpc) { _volUpBtn = new UIButton(mpc, 12) { HoldTime = TimeSpan.FromSeconds(0.5) }; _volUpBtn.ButtonEvent += OnOtherButtonEvent; _volDownBtn = new UIButton(mpc, 11) { HoldTime = TimeSpan.FromSeconds(0.5) }; _volDownBtn.ButtonEvent += OnOtherButtonEvent; _muteBtn = new UIButton(mpc, 13); _muteBtn.ButtonEvent += OnOtherButtonEvent; _volGuage = new UIGuage(mpc, 1); }