WIP Entry expiration dates

This commit is contained in:
2017-10-18 13:57:10 +02:00
committed by BONNEVILLE Geoffroy
parent dc62cedb74
commit 7bb78fd374
8 changed files with 69 additions and 29 deletions

View File

@@ -66,7 +66,7 @@ namespace ModernKeePass.Common
*/
var notificationXml = ToastNotificationManager.GetTemplateContent(ToastTemplateType.ToastText02);
var toastElements = notificationXml.GetElementsByTagName("text");
toastElements[0].AppendChild(notificationXml.CreateTextNode($"{entityType} deleted"));
toastElements[0].AppendChild(notificationXml.CreateTextNode($"{entityType} {entity.Name} deleted"));
toastElements[1].AppendChild(notificationXml.CreateTextNode("Click me to undo"));
var toastNode = notificationXml.SelectSingleNode("/toast");
((XmlElement)toastNode)?.SetAttribute("launch", new QueryString