IToastNotification IToastNotificationAdapter.Create(IPredefinedToastNotificationInfo info) { var content = ToastNotificationManager.GetDocument(manager, info); if(factory == null) factory = ComFunctions.RoGetActivationFactory<IToastNotificationFactory>(); IToastNotification result; ComFunctions.CheckHRESULT(factory.CreateToastNotification(content, out result)); return result; }
IToastNotification IToastNotificationAdapter.Create(IPredefinedToastNotificationInfo info) { var content = ToastNotificationManager.GetDocument(manager, info); if (factory == null) { factory = ComFunctions.RoGetActivationFactory <IToastNotificationFactory>(); } IToastNotification result; ComFunctions.CheckHRESULT(factory.CreateToastNotification(content, out result)); return(result); }