public static void TouchscreenAlphanumericDialogTest(VirtualCanvas canvas) { canvas.SetOrientation(Orientation.Landscape); var response = canvas.TouchscreenShowDialog(DialogType.Alphanumeric); Debug.Print("User Input: " + response); canvas.SetOrientation(Orientation.Portrait); response = canvas.TouchscreenShowDialog(DialogType.Alphanumeric); Debug.Print("User Input: " + response); }
public void Render(VirtualCanvas canvas) { var SendContext = new BasicTypeSerializerContext(); var ComPort = new SerialMessenger(); ComPort.Initialize(); canvas.SetOrientation(Orientation.Landscape); var text = canvas.TouchscreenShowDialog(DialogType.Alphanumeric); Debug.Print("User text: " + text); int contentSize = 0; BasicTypeSerializer.Put(SendContext, (UInt16)RGBLedDisplayCommand.DisplayMarquee); BasicTypeSerializer.Put(SendContext, text, true); var buffer = SendContext.GetBuffer(out contentSize); ComPort.Send(buffer, 0, (byte)contentSize); Thread.Sleep(1000); ComPort.Dispose(); }