O'Reilly logo

Embedded Programming with the Microsoft® .NET Micro Framework by Rob Miles, Donald Thompson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Working User Interface

As an example, consider our flashlight from earlier chapters. It is now a data-logging device that we can use to track the activities of the security staff at our installation. As well as providing light as requested, the flashlight will also allow security personnel to log their location at any given time. The locations available are "on break," "at the warehouse," "at reception," or "walking around the plant."

ListBox listBox = new ListBox(); Text teaBreakText = new Text(largeFont, "on break"); teaBreakText.TextAlignment = TextAlignment.Center; teaBreakText.Width = win.Width; ListBoxItem teaBreakItem = new ListBoxItem(); teaBreakItem.Child = teaBreakText; listBox.Items.Add(teaBreakItem); Text WarehouseText = ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required