by Santhakumar Munuswamy
Posted on 16 February 2016
可穿戴
今天,我们将讨论.NET Micro Framework,SmartWatch应用3d走势图综合版走势图,并且还将开发,运行并将这些应用3d走势图综合版走势图部署到模拟器。我们可以建立我们的 可穿戴 使用.NET Micro Framework的smartwatch应用3d走势图综合版走势图。我们需要必备的软件代理SmartWatch SDK,.NET Micro Framework SDK和Visual Studio 2015。
什么是.NET Micro Framework?
.NET Micro Framework(以前称为SPOT)是一个功能强大且灵活的平台,用于使用Microsoft Visual Studio快速创建嵌入式设备固件。 SPOT被称为智能个人对象技术,它支持最小的设备,SPOT手表,GPS导航设备和Windows Vista Sideshow显示器。

先决条件
- 视觉效果 Studio 2015
- Agent SDK v0.3
- Microsoft .NET Micro Framework SDK v4.3
首先,我们需要建立环境
- Microsoft .NET Micro Framework SDK v4.3
- Agent SDK v0.3
Agnet SDK
步骤1: 双击“ agentsdk”。
将打开AGENT SDK v0.3安装3d走势图综合版走势图,然后选择复选框许可条款,然后单击 安装 纽扣.

Agent SDK安装3d走势图综合版走势图的安装3d走势图综合版走势图初始化过程入门,

在Agent SDK中成功安装后,您将看到以下屏幕并单击 关 纽扣.

Microsoft .NET Micro Framework SDK
步骤2: 双击“ MicroFrameworkSDK”
Microsoft .NET Micro Framework SDK 4.3安装3d走势图综合版走势图将打开并单击 安装 纽扣.

Microsoft .NET Micro Framework SDK 4.3安装向导现已打开。选择许可条款复选框,然后单击 下一个 纽扣.

Microsoft .NET Micro Framework SDK 4.3安装向导现已打开。选择复选框 典型 和 click 下一个 纽扣.

Microsoft .NET Micro Framework SDK 4.3安装向导打开并单击 安装 纽扣.

.NET Micro Framework SDK安装3d走势图综合版走势图的安装3d走势图综合版走势图安装过程入门。

在.NET Micro Framework SDK中成功安装后,可以看到以下屏幕,然后单击 完 纽扣.

步骤3:
使用.NET Micro Framework创建示例应用3d走势图综合版走势图并部署模拟器。
打开Visual Studio 2015,转到文件菜单,指向新建,然后单击新项目,您可以在其中看到该部分 Visual C# Template. Click 微框架,然后选择 窗口 Application并键入项目名称AgentSmartWatchApps。 选择项目位置路径,然后单击“确定”按钮。

你可以看到 AgentSmartWatchApps 项目结构如以下屏幕截图所示:

转到解决方案资源管理器,右键单击项目名称,然后选择“应用3d走势图综合版走势图”选项。选择目标框架“.NET Micro Framework 4.3 ”。

转到解决方案资源管理器,然后右键单击项目名称,然后选择 .NET Micro Framework 选项,然后是设备“代理模拟器 ”。

- 使用 System;
-
- 使用 Microsoft.SPOT;
- 使用 Microsoft.SPOT.Input;
- 使用 Microsoft.SPOT。演示文稿;
- 使用 Microsoft.SPOT.Presentation.Controls;
-
- 命名空间 AgentSmartWatchApps
- {
- public class Program : 微软SPOT应用
- {
- public static void Main()
- {
- Program myApplication = new Program();
-
- Window mainWindow = myApplication.CreateWindow();
-
- // Create the object that configures the GPIO pins to buttons.
- GPIOButtonInputProvider inputProvider = new GPIOButtonInputProvider (null);
-
- // Start the application
- myApplication.Run(mainWindow);
- }
-
- private Window mainWindow;
-
- public Window CreateWindow()
- {
- // Create a window object and set its size to the
- // size of the display.
- mainWindow = new Window();
- mainWindow.Height = SystemMetrics.ScreenHeight;
- mainWindow.Width = SystemMetrics.ScreenWidth;
-
- // Create a single text control.
- Text text = new Text();
-
- text.Font = Resources.GetFont(Resources.FontResources.small);
- text.TextContent = Resources.GetString(Resources.StringResources.String1);
- text.HorizontalAlignment = Microsoft.SPOT.Presentation.HorizontalAlignment.Center;
- text.VerticalAlignment = Microsoft.SPOT.Presentation.VerticalAlignment.Center;
-
- // Add the text control to the window.
- mainWindow.Child = text;
-
- // Connect the button handler to all of the buttons.
- mainWindow.AddHandler(Buttons.ButtonUpEvent, new RoutedEventHandler(OnButtonUp), false);
-
- // Set the window visibility to visible.
- mainWindow.Visibility = Visibility.Visible;
-
- // Attach the button focus to the window.
- Buttons.Focus(mainWindow);
-
- return mainWindow;
- }
-
- private void OnButtonUp(object sender, RoutedEventArgs evt)
- {
- ButtonEventArgs e = (ButtonEventArgs)evt;
-
- // Print the button code to the Visual Studio output window.
- Debug.Print(e.Button.ToString());
- }
- }
- }
运行并测试Agent Smartwatch“ Hello World”应用3d走势图综合版走势图。

本文可帮助您通过Agent Smartwatch应用3d走势图综合版走势图了解.NET Micro Framework和AGENT SDK 使用Visual Studio 2015。 感谢您阅读我的文章。请分享您的意见或建议。