if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal static ImfManager GetImfManagerFromPtr(IntPtr cPtr)
- {
- ImfManager ret = new ImfManager(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
/// <summary>
/// ImfManager activated event arguments.
/// </summary>
{
ImfManagerActivatedEventArgs e = new ImfManagerActivatedEventArgs();
- e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
+ if (data != null)
+ {
+ e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
+ }
if (_imfManagerActivatedEventHandler != null)
{
{
ActivatedEventArgs e = new ActivatedEventArgs();
- e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
+ if (data != null)
+ {
+ e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
+ }
if (_activatedEventHandler != null)
{
{
ImfManagerEventReceivedEventArgs e = new ImfManagerEventReceivedEventArgs();
- e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
+ if (data != null)
+ {
+ e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
+ }
if (_imfManagerEventReceivedEventHandler != null)
{
EventReceivedEventArgs e = new EventReceivedEventArgs();
- e.ImfManager = ImfManager.GetImfManagerFromPtr(imfManager);
- e.ImfEventData = ImfEventData.GetImfEventDataFromPtr(imfEventData);
+ if (imfManager != null)
+ {
+ e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(imfManager) as ImfManager;
+ }
+ if (imfEventData != null)
+ {
+ e.ImfEventData = ImfEventData.GetImfEventDataFromPtr(imfEventData);
+ }
if (_eventReceivedEventHandler != null)
{
{
ImfManagerStatusChangedEventArgs e = new ImfManagerStatusChangedEventArgs();
- e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
+ if (data != null)
+ {
+ e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
+ }
if (_imfManagerStatusChangedEventHandler != null)
{
{
ImfManagerResizedEventArgs e = new ImfManagerResizedEventArgs();
- e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
+ if (data != null)
+ {
+ e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
+ }
if (_imfManagerResizedEventHandler != null)
{
[Obsolete("Please do not use! this will be internal")]
public ImfVoidSignalType ResizedSignal()
{
- ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), true);
+ ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
{
ImfManagerLanguageChangedEventArgs e = new ImfManagerLanguageChangedEventArgs();
- e.ImfManager = ImfManager.GetImfManagerFromPtr(data);
+ if (data != null)
+ {
+ e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
+ }
if (_imfManagerLanguageChangedEventHandler != null)
{
[Obsolete("Please do not use! this will be internal")]
public ImfVoidSignalType LanguageChangedSignal()
{
- ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), true);
+ ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}