Пример #1
0
 /// <summary>
 /// 创建
 /// </summary>
 /// <param name="args"></param>
 protected override void OnCreate(ExtensionArgs args)
 {
     base.OnCreate(args);
     App.RunOnUIThread(() =>
     {
         UIController = BaseApi.GetUIController();
         UIController.OnStart(args.Wrapper.Info);
         UIController.Closing += OnUIControllerClosing;
     });
     Tip = App.GetPublicResouce <string>("RunningWindowStateRunning");
 }
 /// <summary>
 /// 当拓展被创建后调用
 /// </summary>
 /// <param name="args"></param>
 protected virtual void OnCreate(ExtensionArgs args)
 {
 }
 public void Init(Context caller, ExtensionArgs args)
 {
     PermissionCheck(caller);
     OnCreate(args);
 }
Пример #4
0
 /// <summary>
 /// 当创建时使用,SharpExtension将会在此构建Executor
 /// </summary>
 /// <param name="args"></param>
 protected override void OnCreate(ExtensionArgs args)
 {
     Executor = new CommandExecutor();
     base.OnCreate(args);
 }
Пример #5
0
 /// <summary>
 /// 当拓展被创建后调用
 /// </summary>
 /// <param name="args"></param>
 protected override void OnCreate(ExtensionArgs args)
 {
     base.OnCreate(args);
     Args = args;
     DeviceSelectedOnCreating = DeviceNow;
 }
Пример #6
0
 /// <summary>
 /// 当创建时,严格化拓展在此处初始化了一些工厂类
 /// </summary>
 /// <param name="args"></param>
 protected override void OnCreate(ExtensionArgs args)
 {
     base.OnCreate(args);
     InitLazyFactory();
     CmdStation = new CommandStation();
 }