Exemplo n.º 1
0
        public static async Task ExecuteAsync(IShell shell)
        {
            var dialog = new SaveFileDialog()
            {
                Filter           = "xml files (*.xml)|*.xml|all files (*.*)|*.*",
                FilterIndex      = 1,
                RestoreDirectory = true,
            };

            if (dialog.ShowDialog() == true)
            {
                await shell.ExportAsync(dialog.FileName);
            }
        }