public override void ButtonPressed(Location location, ButtonEvent buttonEvent) { if (buttonEvent == ButtonEvent.Down) { _layoutContext.SetPreviousLayout(); } }
public override bool ButtonPressed(Location location, ButtonEvent buttonEvent) { if (buttonEvent == ButtonEvent.Down) { var weatherStationLayout = new WeatherStationLayout(); GlobalContext.InitializeEntity(weatherStationLayout); LayoutContext.SetLayout(weatherStationLayout); } return(base.ButtonPressed(location, buttonEvent)); }
public override bool ButtonPressed(Location location, ButtonEvent buttonEvent) { if (buttonEvent == ButtonEvent.Down) { var forecastLayout = new DaysForecastLayout(); GlobalContext.InitializeEntity(forecastLayout); forecastLayout.InitOptions(_weatherOptions); LayoutContext.SetLayout(forecastLayout); } return(base.ButtonPressed(location, buttonEvent)); }
public override bool ButtonPressed(Location location, ButtonEvent buttonEvent) { if (buttonEvent == ButtonEvent.Down) { foreach (var service in _mailServices) { service.Activate(); } return(true); } return(base.ButtonPressed(location, buttonEvent)); }
public override void ButtonPressed(Location location, ButtonEvent buttonEvent) { if (buttonEvent == ButtonEvent.Down) { if (location.Y == 0) { var forecastLayout = new HoursForecastLayout(DateTime.Now.Date.AddDays(location.X)); _globalContext.InitializeEntity(forecastLayout); forecastLayout.InitOptions(_weatherOptions); _layoutContext.SetLayout(forecastLayout); } else { _layoutContext.SetPreviousLayout(); } } }
public abstract void ButtonPressed(Location location, ButtonEvent buttonEvent);