Esempio n. 1
0
        public ExportFolder(FolderExporter exporter)
        {
            if (exporter == null)
            {
                throw new ArgumentNullException(nameof(exporter));
            }

            Closing += OnClosing;
            Loaded  += OnLoaded;

            Exporter = exporter;
            InitializeComponent();
        }
Esempio n. 2
0
        private void TreeViewExportTo_Click(object sender, RoutedEventArgs e)
        {
            var folder = TV.GetSelectedTag <Folder>();

            if (folder == null)
            {
                return;
            }

            var exporter = new FolderExporter(folder);
            var popup    = new ExportFolder(exporter);

            popup.ShowDialog();
        }