コード例 #1
0
        private void DoUpdateLcd()
        {
            Lcd.Clear();
            if (!Lcd.IsKey3Pressed)
            {
                Lcd.LcdWriteTime();

                List <CalendarItem> CalenderItems = DataManager.GetCalenderItems();

                Int32 LineCount = 0;
                for (int i = 0; i < 4; i++)
                {
                    if (CalenderItems.Count > i)
                    {
                        Lcd.LcdWrite(LineCount++, CalenderItems[i]);
                    }
                }

                List <EmailItem> EmailItems = DataManager.GetEmailItems();

                if (EmailItems.Count > 0)
                {
                    Lcd.LcdWrite(EmailItems[0]);
                }
                Lcd.Update();
            }
            NextUpdateLcd = DateTime.Now.AddMilliseconds(100);
        }