public class NUIApplication : CoreApplication
{
/// <summary>
+ /// Occurs whenever the application is resumed.
+ /// </summary>
+ public event EventHandler Resumed;
+
+ /// <summary>
+ /// Occurs whenever the application is paused.
+ /// </summary>
+ public event EventHandler Paused;
+
+ /// <summary>
/// The instance of ResourceManager.
/// </summary>
private static System.Resources.ResourceManager resourceManager = null;
+
/// <summary>
/// The default constructor.
/// </summary>
/// </summary>
protected override void OnLocaleChanged(LocaleChangedEventArgs e)
{
+ Log.Debug("NUI", "OnLocaleChanged() is called!");
+ base.OnLocaleChanged(e);
}
/// <summary>
protected override void OnLowBattery(LowBatteryEventArgs e)
{
Log.Debug("NUI", "OnLowBattery() is called!");
+ base.OnLowBattery(e);
}
/// <summary>
protected override void OnLowMemory(LowMemoryEventArgs e)
{
Log.Debug("NUI", "OnLowMemory() is called!");
+ base.OnLowMemory(e);
}
/// <summary>
protected override void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
{
Log.Debug("NUI", "OnRegionFormatChanged() is called!");
+ base.OnRegionFormatChanged(e);
}
/// <summary>
protected override void OnTerminate()
{
Log.Debug("NUI", "OnTerminate() is called!");
+ base.OnTerminate();
}
/// <summary>
/// </summary>
protected virtual void OnPause()
{
+ Log.Debug("NUI", "OnPause() is called!");
+ Paused?.Invoke(this, EventArgs.Empty);
}
/// <summary>
/// </summary>
protected virtual void OnResume()
{
+ Log.Debug("NUI", "OnResume() is called!");
+ Resumed?.Invoke(this, EventArgs.Empty);
}
/// <summary>
/// </summary>
protected virtual void OnPreCreate()
{
+ Log.Debug("NUI", "OnPreCreate() is called!");
}
/// <summary>
Log.Debug("NUI", "OnAppControlReceived() is called! ApplicationId=" + e.ReceivedAppControl.ApplicationId);
Log.Debug("NUI", "CallerApplicationId=" + e.ReceivedAppControl.CallerApplicationId + " IsReplyRequest=" + e.ReceivedAppControl.IsReplyRequest);
}
+ base.OnAppControlReceived(e);
}
/// <summary>
DisposeQueue disposeQ = DisposeQueue.Instance;
disposeQ.Initialize();
Log.Debug("NUI","OnCreate() is called!");
+ base.OnCreate();
}
/// <summary>