private void ScreensDelete() { idlescreen = null; idletitle = null; idletext = null; userscreens = null; }
private void ScreensCreate() { idlescreen = new LCDScreen("idlescreen", LCDScreen.Prio.Foreground, 32); idletitle = new LCDWidgetTitle("idletitle", "Banshee"); idletext = new LCDWidgetScroller("idletext", 1, 2, 16, 1, LCDWidgetScroller.Direction.Horizontal, 3, "Status: %S"); userscreens = new Dictionary <LCDScreen, HashSet <LCDWidget> >(); LCDScreen trackscreen = new LCDScreen("trackscreen", LCDScreen.Prio.Foreground, 32); userscreens[trackscreen] = new HashSet <LCDWidget>(); userscreens[trackscreen].Add(new LCDWidgetScroller("artisttext", 1, 1, 16, 1, LCDWidgetScroller.Direction.Marquee, 2, "%A / %B")); userscreens[trackscreen].Add(new LCDWidgetString("numtext", 1, 2, "%N/%C")); userscreens[trackscreen].Add(new LCDWidgetScroller("tracktext", 7, 2, 9, 1, LCDWidgetScroller.Direction.Horizontal, 2, "%T")); LCDScreen posscreen = new LCDScreen("posscreen", LCDScreen.Prio.Foreground, 32); userscreens[posscreen] = new HashSet <LCDWidget>(); userscreens[posscreen].Add(new LCDWidgetScroller("postext", 1, 2, 16, 1, LCDWidgetScroller.Direction.Marquee, 2, " %P / %L")); }
private void ScreensCreate() { idlescreen = new LCDScreen("idlescreen", LCDScreen.Prio.Foreground, 32); idletitle = new LCDWidgetTitle("idletitle", "Banshee"); idletext = new LCDWidgetScroller("idletext",1,2,16,1,LCDWidgetScroller.Direction.Horizontal,3,"Status: %S"); userscreens = new Dictionary<LCDScreen, HashSet<LCDWidget> >(); LCDScreen trackscreen = new LCDScreen("trackscreen", LCDScreen.Prio.Foreground, 32); userscreens[trackscreen] = new HashSet<LCDWidget>(); userscreens[trackscreen].Add(new LCDWidgetScroller("artisttext",1,1,16,1,LCDWidgetScroller.Direction.Marquee,2,"%A / %B")); userscreens[trackscreen].Add(new LCDWidgetString("numtext",1,2,"%N/%C")); userscreens[trackscreen].Add(new LCDWidgetScroller("tracktext",7,2,9,1,LCDWidgetScroller.Direction.Horizontal,2,"%T")); LCDScreen posscreen = new LCDScreen("posscreen", LCDScreen.Prio.Foreground, 32); userscreens[posscreen] = new HashSet<LCDWidget>(); userscreens[posscreen].Add(new LCDWidgetScroller("postext",1,2,16,1,LCDWidgetScroller.Direction.Marquee,2," %P / %L")); }