// Internal for testing internal void InvokeResuming() { // Need to notify DeviceInformationHelper to refresh display cache here too because there is no guarantee that // it will automatically happen beforehand DeviceInformationHelper.RefreshDisplayCache(); IsSuspended = false; ApplicationResuming?.Invoke(null, null); }
public void InvokeStarted() { // Need to notify DeviceInformationHelper to refresh display cache here too because there is no guarantee that // it will automatically happen beforehand DeviceInformationHelper.RefreshDisplayCache(); if (Enabled) { HasShownWindow = true; IsSuspended = false; ApplicationStarted?.Invoke(null, null); } }