Example #1
0
        public MainWindow()
        {
            logger            = new ConsoleLogger(new DefaultLogFormatter());
            documentViewModel = new DocumentViewModelCollection(logger);

            InitializeComponent();
        }
Example #2
0
 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));
 }
Example #3
0
 public static bool CloseByWikiSite(this DocumentViewModelCollection vms,
                                    WikiSiteViewModel wikiSite)
 {
     return(CloseByWikiSite(vms, wikiSite, null));
 }