private void ClearAfterDelete()
 {
     DataChangeOff();
     LoadData();
     SearchTB.Clear();
     SearchStatusL.Text = "Number of results: " + Selected + "/" + x.Count;
 }
 private void ClearWorkPlace()
 {
     foreach (UIElement workPlaceChild in WorkPlace.Children)
     {
         if (workPlaceChild.Visibility == Visibility.Visible)
         {
             workPlaceChild.Visibility = Visibility.Hidden;
         }
     }
     SearchTB.Clear();
 }
Beispiel #3
0
        // searches for the specified gallery and sets it to selected if exists
        private void SearchGalBtn_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrWhiteSpace(SearchTB.Text))
            {
                int target = Searcher.GallerySearch(SearchTB.Text, galleries);

                if (target >= 0)
                {
                    GalleryList.SelectedItem = galleries.ElementAt(target);
                }
            }

            SearchTB.Clear();
        }
Beispiel #4
0
        // searches for the specified image and sets it to selected if exists
        private void SearchImgBtn_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrWhiteSpace(SearchTB.Text))
            {
                int target = Searcher.ImageSearch(SearchTB.Text, selectedGallery.Images);

                if (target >= 0)
                {
                    // load img
                    ImageGallery.ClearSelection();
                    ImageGallery.CurrentCell = ImageGallery.Rows[target].Cells[0];
                    //ImageGallery.Rows[target].Selected = true;
                }
            }

            SearchTB.Clear();
        }
 private void EmptyButton_Click(object sender, RoutedEventArgs e)
 {
     SearchTB.Clear();
     PerformDictionaryPrint(_mainWindow.Serializer.TermList);
 }