예제 #1
0
 public override void ButtonPressed(Location location, ButtonEvent buttonEvent)
 {
     if (buttonEvent == ButtonEvent.Down)
     {
         _layoutContext.SetPreviousLayout();
     }
 }
예제 #2
0
        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));
        }
예제 #3
0
        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));
        }
예제 #4
0
파일: MailElement.cs 프로젝트: tihilv/Vkm
        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));
        }
예제 #5
0
 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();
         }
     }
 }
예제 #6
0
 public abstract void ButtonPressed(Location location, ButtonEvent buttonEvent);