示例#1
0
        private void SearchTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            string text = (sender as TextBox).Text;

            SamplifyEngine.UpdateCurrentSamples(text);
            sampleListView.Items.Refresh();
        }
示例#2
0
        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();
        }
示例#3
0
        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();
            }
        }
示例#4
0
        public MainWindow()
        {
            SamplifyEngine.loadUserData(); //loads saved directories
            SamplifyEngine.updateAllSamples();
            InitializeComponent();

            sampleListView.ItemsSource = SamplifyEngine.currentSamples;

            tagListView.ItemsSource = SamplifyEngine.allTags;
            //update listview


            //resetTreeView();
        }
示例#5
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     SamplifyEngine.saveDirectoriesToRegistry();
     SamplifyEngine.saveTagsToRegistry();
 }
示例#6
0
 private void refreshLibrariesButton_Click(object sender, RoutedEventArgs e)
 {
     SamplifyEngine.regenerateLibrary();
 }