public static int AppEnable() { //AppEnableEvent appEnableEvent =(AppEnableEvent) Marshal.PtrToStructure(intPtr,typeof(AppEnableEvent)); if (Common.unityContainer.IsRegistered <IAppEnableEvent>()) { AppEnableEvent ae = new AppEnableEvent(); Common.unityContainer.Resolve <IAppEnableEvent>().AppEnableEvent(ae); return((int)EventProcessEnum.Ignore); } return((int)EventProcessEnum.Ignore); }
public static int AppEnable() { try { //AppEnableEvent appEnableEvent =(AppEnableEvent) Marshal.PtrToStructure(intPtr,typeof(AppEnableEvent)); if (Common.unityContainer.IsRegistered <IAppEnableEvent>()) { AppEnableEvent ae = new AppEnableEvent(); Common.unityContainer.Resolve <IAppEnableEvent>().AppEnableEvent(ae); return((int)EventProcessEnum.Ignore); } } catch (Exception ex) { Common.BugLog("启动:" + ex.ToString()); } return((int)EventProcessEnum.Ignore); }
public void AppEnableEvent(AppEnableEvent e) { }