/// <summary>
        /// Builds the current activity.
        /// </summary>
        private void BuildCurrentActivity()
        {
            TaskActivity activity = AppContext.Current.CurrentActivity;

            if (activity != null && !activity.IsEmpty())
            {
                string message = activity.ToSummaryString().Replace("\r\n", " ");
                int    index   = message.IndexOf("on the");
                if (index != -1)
                {
                    this._textBoxCurrentTask.Text = message.Substring(0, index);
                }
                else
                {
                    this._textBoxCurrentTask.Text = message;
                }
            }
        }