/// <summary>
        /// Uses the description handler.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void UseDescriptionHandler(object sender, EventArgs e)
        {
            if (listViewTaskDescriptions.SelectedItems.Count > 0)
            {
                ListViewItem    item        = listViewTaskDescriptions.SelectedItems[0];
                TaskDescription description = (TaskDescription)item.Tag;

                if (this._isAdvancedMode)
                {
                    AdvancedSelectDialog dialog = new AdvancedSelectDialog(description);
                    if (dialog.ShowDialog(this) == DialogResult.OK)
                    {
                        AppContext.Current.HandleNewTaskActivity(
                            dialog.Current,
                            dialog.CrossTab,
                            dialog.StartTime);

                        Close();
                    }
                }
                else
                {
                    AppContext.Current.HandleNewTaskActivity(description, DateTime.Now);
                    Close();
                }
            }
        }
        /// <summary>
        /// Uses the task description.
        /// </summary>
        private void UseTaskDescription()
        {
            TreeNode currentNode = this._treeViewActions.SelectedNode;

            if (currentNode == null)
            {
                return;
            }

            if (currentNode.NodeFont != null && currentNode.NodeFont.Strikeout)
            {
                return;
            }

            if (!(currentNode.Tag is TaskDescription description))
            {
                return;
            }

            if (this._isAdvancedMode)
            {
                AdvancedSelectDialog dialog = new AdvancedSelectDialog(description);
                if (dialog.ShowDialog(this) == DialogResult.OK)
                {
                    AppContext.Current.HandleNewTaskActivity(
                        dialog.Current,
                        dialog.CrossTab,
                        dialog.StartTime);

                    Close();
                }
            }
            else
            {
                AppContext.Current.HandleNewTaskActivity(description, DateTime.Now);
                Close();
            }
        }
        /// <summary>
        /// Uses the task description.
        /// </summary>
        private void UseTaskDescription()
        {
            TreeNode currentNode = this._treeViewActions.SelectedNode;
            if(currentNode == null)
                return;

            if(currentNode.NodeFont != null && currentNode.NodeFont.Strikeout)
                return;

            TaskDescription description = currentNode.Tag as TaskDescription;
            if(description == null)
                return;

            if(this._isAdvancedMode)
            {
                AdvancedSelectDialog dialog = new AdvancedSelectDialog(description);
                if(dialog.ShowDialog(this) == DialogResult.OK)
                {
                    AppContext.Current.HandleNewTaskActivity(
                        dialog.Current,
                        dialog.CrossTab,
                        dialog.StartTime);

                    Close();
                }
            }
            else
            {
                AppContext.Current.HandleNewTaskActivity(description, DateTime.Now);
                Close();
            }
        }
        /// <summary>
        /// Uses the description handler.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void UseDescriptionHandler(object sender, EventArgs e)
        {
            if (listViewTaskDescriptions.SelectedItems.Count > 0)
            {
                ListViewItem item = listViewTaskDescriptions.SelectedItems[0];
                TaskDescription description = (TaskDescription) item.Tag;

                if(this._isAdvancedMode)
                {
                    AdvancedSelectDialog dialog = new AdvancedSelectDialog(description);
                    if(dialog.ShowDialog(this) == DialogResult.OK)
                    {
                        AppContext.Current.HandleNewTaskActivity(
                            dialog.Current,
                            dialog.CrossTab,
                            dialog.StartTime);

                        Close();
                    }
                }
                else
                {
                    AppContext.Current.HandleNewTaskActivity(description, DateTime.Now);
                    Close();
                }
            }
        }