-
Notifications
You must be signed in to change notification settings - Fork 218
你好,秋之盒,首次见面
Shunhong Zhang edited this page Jan 15, 2019
·
2 revisions
using AutumnBox.OpenFramework.Extension;
using AutumnBox.OpenFramework.Extension.LeafExtension;
namespace AutumnBox.CoreModules.Extensions
{
[ExtName("Hello AutumnBox")]
[ExtRequiredDeviceStates(AutumnBoxExtension.NoMatter)]
public class EMyFirstExtension : LeafExtensionBase
{
/*Main为入口函数,并请求了一个类型为IUx的API*/
public void Main(IUx ux)
{
//调用请求的IUx.Message,显示一个内容为Hello AutumnBox!的信息窗口
ux.Message("Hello AutumnBox!");
}
}
}
右键项目,生成
前往生成文件夹,将生成的模块Copy出来,并放到秋之盒模块文件夹
Hello AutumnBox!