Esempio n. 1
0
        private static ToastNotification CreateToastNotificationFromOptions(Options options)
        {
            var templateFile = options.InputNotificationTemplateFilePath;

            if (string.IsNullOrWhiteSpace(templateFile))
            {
                return(ToastNotificationFactory.CreateToastNotificationBuilderFromOptions(options)
                       .BuildToastNotification());
            }
            else
            {
                return(CreateFromTemplateFile(options.InputNotificationTemplateFilePath));
            }
        }
Esempio n. 2
0
        private static void ExportNotificationDefinition(Options options)
        {
            var builder = ToastNotificationFactory.CreateToastNotificationBuilderFromOptions(options);

            File.WriteAllText(options.OutputNotificationTemplateFilePath, builder.BuildXml().GetXml());
        }