Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 public void AppEnableEvent(AppEnableEvent e)
 {
 }