private void Remove(object sender, RoutedEventArgs e) { Button button = sender as Button; VModels.SiteSettings site = button.DataContext as VModels.SiteSettings; site.site.RemoveTags(); site.site.RemovePage(); Sites.Remove(site); App.Settings.current_site = null; ShowMessage("Site removed!"); }
private void ProxySelectorToggle(object sender, RoutedEventArgs e) { Button button = sender as Button; VModels.SiteSettings site = button.DataContext as VModels.SiteSettings; if (site.ProxySelectorVisibility == Visibility.Visible) { site.ProxySelectorVisibility = Visibility.Collapsed; } else { site.ProxySelectorVisibility = Visibility.Visible; } }