private void CloseCommand()
 {
     var evnt = new CloseDocumentEvent() { PathToDocument = _weakCont.Get().Resolve<IStateService>().GetCurrentDocument() };
     _weakCont.Get().Resolve<IEventAggregator>().GetEvent<CloseDocumentEvent>().Publish(evnt);
     _weakCont.Get().Resolve<IStateService>().CloseDocument();
 }
 private void OnClosingDocument(CloseDocumentEvent args)
 {
     _container.Resolve<ILogger>().Log(LogSeverity.Info, string.Format("Begin document close operation: {0}", args.PathToDocument), null);
     Entries.Clear();
     _container.Resolve<ICommandManager>().Refresh();
 }