private void editDirectoryButton_Click(object sender, RoutedEventArgs e) { DirectoryEditorWindow window = new DirectoryEditorWindow(SamplifyEngine.directories.ToArray()); if (window.ShowDialog() == true) { SamplifyEngine.directories = window.directories; SamplifyEngine.updateAllSamples(); resetTreeView(); } }
public MainWindow() { SamplifyEngine.loadUserData(); //loads saved directories SamplifyEngine.updateAllSamples(); InitializeComponent(); sampleListView.ItemsSource = SamplifyEngine.currentSamples; tagListView.ItemsSource = SamplifyEngine.allTags; //update listview //resetTreeView(); }