예제 #1
0
        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!");
        }
예제 #2
0
        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;
            }
        }