The issue handler menu.
Inheritance: IMenuItem
Example #1
0
        /// <summary>
        /// The make menu.
        /// </summary>
        /// <param name="rest">The rest.</param>
        /// <param name="model">The model.</param>
        /// <param name="notmanager">The notmanager.</param>
        /// <returns>
        /// The <see cref="IMenuItem" />.
        /// </returns>
        public static IMenuItem MakeMenu(ISonarRestService rest, IssueGridViewModel model, INotificationManager notmanager)
        {
            var topLel = new ChangeStatusMenu(rest, model, notmanager)
            {
                CommandText = "Status", IsEnabled = false
            };

            topLel.SubItems.Add(new ChangeStatusMenu(rest, model, notmanager)
            {
                CommandText = "Confirm", IsEnabled = true
            });
            topLel.SubItems.Add(new ChangeStatusMenu(rest, model, notmanager)
            {
                CommandText = "Fix", IsEnabled = true
            });
            topLel.SubItems.Add(new ChangeStatusMenu(rest, model, notmanager)
            {
                CommandText = "False Positive", IsEnabled = true
            });
            return(topLel);
        }
        /// <summary>
        /// The make menu.
        /// </summary>
        /// <param name="rest">The rest.</param>
        /// <param name="model">The model.</param>
        /// <param name="notmanager">The notmanager.</param>
        /// <returns>
        /// The <see cref="IMenuItem" />.
        /// </returns>
        public static IMenuItem MakeMenu(ISonarRestService rest, IssueGridViewModel model, INotificationManager notmanager)
        {
            var topLel = new ChangeStatusMenu(rest, model, notmanager) { CommandText = "Status", IsEnabled = false };

            topLel.SubItems.Add(new ChangeStatusMenu(rest, model, notmanager) { CommandText = "Confirm", IsEnabled = true });
            topLel.SubItems.Add(new ChangeStatusMenu(rest, model, notmanager) { CommandText = "Fix", IsEnabled = true });
            topLel.SubItems.Add(new ChangeStatusMenu(rest, model, notmanager) { CommandText = "False Positive", IsEnabled = true });
            return topLel;
        }