BaconographyPortable.ViewModel.LinkViewModel.NavigateToCommentsImpl C# (CSharp) Method

NavigateToCommentsImpl() private static method

private static NavigateToCommentsImpl ( LinkViewModel vm ) : void
vm LinkViewModel
return void
        private static void NavigateToCommentsImpl(LinkViewModel vm)
        {
            if (vm.IsExtendedOptionsShown)
                vm.IsExtendedOptionsShown = false;

            if (vm == null || vm._linkThing == null || vm._linkThing.Data == null || string.IsNullOrWhiteSpace(vm._linkThing.Data.Url))
                vm._baconProvider.GetService<INotificationService>().CreateNotification("Invalid link data, please PM /u/hippiehunter with details");
            else
                vm._navigationService.Navigate(vm._dynamicViewLocator.CommentsView, new SelectCommentTreeMessage { LinkThing = vm._linkThing });
        }