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 = ...

Get Embedded Programming with the Microsoft® .NET Micro Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.