The show hide issue column.
Inheritance: IMenuItem
        /// <summary>
        /// The make menu.
        /// </summary>
        /// <param name="model">
        /// The model.
        /// </param>
        /// <param name="helper">
        /// The helper.
        /// </param>
        /// <param name="columns">
        /// The columns.
        /// </param>
        /// <param name="gridKey">
        /// The grid key.
        /// </param>
        /// <returns>
        /// The <see cref="IMenuItem"/>.
        /// </returns>
        public static IMenuItem MakeMenu(IssueGridViewModel model, IConfigurationHelper helper, List <string> columns, string gridKey)
        {
            var menu = new ShowHideIssueColumn(model, helper, string.Empty, gridKey)
            {
                CommandText = "Columns", IsEnabled = false
            };

            foreach (string column in columns)
            {
                if (column.Equals("Component") || column.Equals("Message") || column.Equals("Line") || column.Equals("LocalPath") || column.Equals("Comments"))
                {
                    continue;
                }

                var subItem = new ShowHideIssueColumn(model, helper, column, gridKey)
                {
                    IsEnabled = true, CommandText = "Hide " + column
                };
                try
                {
                    var value = helper.ReadSetting(Context.UIProperties, gridKey, column + "Visible").Value.ToLower();
                    if (value.Equals("true"))
                    {
                        subItem.CommandText = "Hide " + column;
                    }
                    else
                    {
                        subItem.CommandText = "Show " + column;
                    }
                }
                catch (Exception)
                {
                    subItem.CommandText = "Hide " + column;
                }

                menu.SubItems.Add(subItem);
            }

            var subItemreset = new ShowHideIssueColumn(model, helper, "Reset View", gridKey)
            {
                IsEnabled = true, CommandText = "Reset View"
            };

            menu.SubItems.Add(subItemreset);

            return(menu);
        }
        /// <summary>
        /// The make menu.
        /// </summary>
        /// <param name="model">
        /// The model.
        /// </param>
        /// <param name="helper">
        /// The helper.
        /// </param>
        /// <param name="columns">
        /// The columns.
        /// </param>
        /// <param name="gridKey">
        /// The grid key.
        /// </param>
        /// <returns>
        /// The <see cref="IMenuItem"/>.
        /// </returns>
        public static IMenuItem MakeMenu(IssueGridViewModel model, IConfigurationHelper helper, List<string> columns, string gridKey)
        {
            var menu = new ShowHideIssueColumn(model, helper, string.Empty, gridKey) { CommandText = "Columns", IsEnabled = false };

            foreach (string column in columns)
            {
                if (column.Equals("Component") || column.Equals("Message") || column.Equals("Line") || column.Equals("LocalPath") || column.Equals("Comments"))
                {
                    continue;
                }

                var subItem = new ShowHideIssueColumn(model, helper, column, gridKey) { IsEnabled = true, CommandText = "Hide " + column };
                try
                {
                    var value = helper.ReadSetting(Context.UIProperties, gridKey, column + "Visible").Value.ToLower();
                    if (value.Equals("true"))
                    {
                        subItem.CommandText = "Hide " + column;
                    }
                    else
                    {
                        subItem.CommandText = "Show " + column;
                    }
                }
                catch (Exception)
                {
                    subItem.CommandText = "Hide " + column;
                }

                menu.SubItems.Add(subItem);
            }

            var subItemreset = new ShowHideIssueColumn(model, helper, "Reset View", gridKey) { IsEnabled = true, CommandText = "Reset View" };
            menu.SubItems.Add(subItemreset);

            return menu;
        }