private void OpenRecentDocument(object file) { if (file == null) { return; } IOpenFileService service = _weakCont.Get().Resolve <IOpenFileService>(); service.OpenFromID(file as string); }