private void ViewSavedSearchesClick(object sender, RoutedEventArgs e) { if (ViewSavedSearchesOpen) { return; } if (SaveSearchOpen) { SidebarControls.Items.Remove(ssp); SaveSearchOpen = false; } vssp = new ViewSavedSearchesPopup(SidebarControls); SidebarControls.Items.Insert(0, vssp); ViewSavedSearchesOpen = true; }
public SavedSearchEntry(ViewSavedSearchesPopup parent, string name, SavableFilters search) { InitializeComponent(); SearchName.Content = name; p = parent; searchname = name; isSubscribed = Convert.ToBoolean(search.FilterDict["Sub"]); subEmail = search.FilterDict["Email"].ToString(); s = search; SearchSubButton.FilterActive = isSubscribed; email_field.EmailTextField.email_text_field.Text = subEmail; EmailUpdated(null, null); email_field.EmailTextField.email_text_field.TextChanged += EmailUpdated; email_field.SaveEmail.Click += SaveClicked; }