}
};
- Preference.EventContext context = null;
- Preference.GetEventContext(ResourceManager.IseConfigPreviewOn).TryGetTarget(out context);
- if (context != null)
- {
- context.Changed += PreviewModeChanged;
+ try\r
+ {\r
+ Preference.EventContext context = null;
+ Preference.GetEventContext(ResourceManager.IseConfigPreviewOn).TryGetTarget(out context);
+ if (context != null)
+ {
+ context.Changed += PreviewModeChanged;
+ }
+ }
+ catch (ArgumentException e)\r
+ {\r
+ Log.Error("NUIIME", "<<<< argument exception >>>>");\r
+ }
+ catch (InvalidOperationException e)
+ {\r
+ Log.Error("NUIIME", "<<<< Invalid operation >>>>");\r
+ }
+ catch (KeyNotFoundException e)
+ {\r
+ Log.Error("NUIIME", "<<<< key not found exception >>>>");\r
}
_updateWindowPositionChangedEvent = (int type, int x, int y, int rotationX, int rotationY, IntPtr user_data) =>