Beispiel #1
0
        private async Task GetColorPalette()
        {
            ePaperColorPalette c = await epaper.GetColorAsync();

            foreColorList.SelectedIndex = (int)c.ForegroundColor;
            backColorList.SelectedIndex = (int)c.BackgroundColor;
        }
Beispiel #2
0
        private async Task SetColor()
        {
            try
            {
                ePaperColorPalette pcp = new ePaperColorPalette();
                pcp.ForegroundColor = (ePaperColor)foreColorList.SelectedIndex;
                pcp.BackgroundColor = (ePaperColor)backColorList.SelectedIndex;
                await epaper.SetColorAsync(pcp);

                SetStatusText("Color Palette saved.");
            }
            catch (ePaperException ex)
            {
                SetStatusText("Error:" + ex.ePaperExceptionCode.ToString() + "   |  Return->" + ex.CommandResult);
                RefreshSettings(false);
            }
        }