private void All_Click(object sender, RoutedEventArgs e) { SlideShow ss = new SlideShow(new string[0], prof, Data, savesettings); ss.Show(); MainSearch.Text = ""; MainSearch.ClearValue(BackgroundProperty); }
private void Main_Click(object sender, RoutedEventArgs e) { if (MainSearch.Text == "") { MainSearch.Background = Brushes.LightPink; MainSearch.Text = ""; } else { if (files.Count > 0) { filearray = files.ToArray(); SlideShow ss = new SlideShow(filearray, prof, Data, savesettings); ss.Show(); MainSearch.Text = ""; MainSearch.ClearValue(BackgroundProperty); } else { MainSearch.Background = Brushes.LightPink; MainSearch.Text = ""; } } }