Bloom.Shell.SetWindowText C# (CSharp) Method

SetWindowText() public method

public SetWindowText ( string bookName ) : void
bookName string
return void
        public void SetWindowText(string bookName)
        {
            // Let's only mark the window text for Alpha and Beta releases. It looks odd to have that in
            // release builds, and doesn't add much since we can treat Release builds as the unmarked case.
            // Note that developer builds now have a special "channel" marking as well to differentiate them
            // from true Release builds in screen shots.
            var formattedText = string.Format("{0} - Bloom {1}", _workspaceView.Text, GetShortVersionInfo());
            var channel = ApplicationUpdateSupport.ChannelName;
            if (channel.ToLowerInvariant() != "release")
                formattedText = string.Format("{0} {1}", formattedText, channel);
            if (bookName != null)
            {
                formattedText = string.Format("{0} - {1}", bookName, formattedText);
            }
            if(_collectionSettings.IsSourceCollection)
            {
                formattedText += " SOURCE COLLECTION";
            }
            Text = formattedText;
        }