public ExportFolder(FolderExporter exporter) { if (exporter == null) { throw new ArgumentNullException(nameof(exporter)); } Closing += OnClosing; Loaded += OnLoaded; Exporter = exporter; InitializeComponent(); }
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(); }