public MainWindow() { logger = new ConsoleLogger(new DefaultLogFormatter()); documentViewModel = new DocumentViewModelCollection(logger); InitializeComponent(); }
public static bool CloseByWikiSite(this DocumentViewModelCollection vms, WikiSiteViewModel wikiSite, DocumentViewModel excepts) { if (vms == null) { throw new ArgumentNullException(nameof(vms)); } if (wikiSite == null) { throw new ArgumentNullException(nameof(wikiSite)); } return(vms.CloseAll(vm => vm.SiteContext == wikiSite && vm != excepts)); }
public static bool CloseByWikiSite(this DocumentViewModelCollection vms, WikiSiteViewModel wikiSite) { return(CloseByWikiSite(vms, wikiSite, null)); }