private void SearchTextBox_TextChanged(object sender, TextChangedEventArgs e) { string text = (sender as TextBox).Text; SamplifyEngine.UpdateCurrentSamples(text); sampleListView.Items.Refresh(); }
private void addTagButton_Click(object sender, RoutedEventArgs e) { TagCreator c = new TagCreator(); if (c.ShowDialog() == true) { SamplifyEngine.createNewTag(c.tagTitle.Text, (Color)c.colorPicker.SelectedColor); } tagListView.Items.Refresh(); }
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(); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { SamplifyEngine.saveDirectoriesToRegistry(); SamplifyEngine.saveTagsToRegistry(); }
private void refreshLibrariesButton_Click(object sender, RoutedEventArgs e) { SamplifyEngine.regenerateLibrary(); }