OdessaGUIProject.Workers.FacebookShareWorker.ViewResult C# (CSharp) Method

ViewResult() private method

private ViewResult ( string &errorMessage ) : bool
errorMessage string
return bool
        internal override bool ViewResult(ref string errorMessage)
        {
            if (HighlightObject.FacebookActivityId.Length == 0)
            {
                Logger.Error("No FacebookActivityId!");
                errorMessage = "Facebook didn't tell us where they uploaded your video. Try opening your news feed and see if it's there.";
                return false;
            }

            if (Properties.Settings.Default.SeenFacebookEncodingWarning == false)
            {
                MessageBox.Show("Your video has been uploaded but sometimes Facebook needs a few minutes before you can watch it. Grab a sandwich and you should be good to go." + Environment.NewLine + Environment.NewLine +
                    "We won't bug you about this again.", "Heads up", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Properties.Settings.Default.SeenFacebookEncodingWarning = true;
                Properties.Settings.Default.Save();
            }

            string url = "https://www.facebook.com/photo.php?v=" + HighlightObject.FacebookActivityId;

            if (BrowserHelper.LaunchBrowser(url) == false)
            {
                errorMessage = "We had trouble launching your browser to " + url;
                return false;
            }

            return true;
        }