void IToastNotificationAdapter.Show(IToastNotification notification) { if (notifier == null) { ComFunctions.CheckHRESULT(manager.CreateToastNotifierWithId(appId, out notifier)); } if (notifier != null && notification != null) { notifier.Show(notification); } }
void IToastNotificationAdapter.Show(IToastNotification notification) { if (notifier == null) { using (var hString_appId = HSTRING.FromString(appId)) ComFunctions.CheckHRESULT(manager.CreateToastNotifierWithId(hString_appId, out notifier)); } if (notifier != null && notification != null) { notifier.Show(notification); } }