The issue handler menu.
Наследование: IMenuItem
Пример #1
0
        /// <summary>
        /// Makes the menu.
        /// </summary>
        /// <param name="rest">The rest.</param>
        /// <param name="model">The model.</param>
        /// <param name="notmanager">The notmanager.</param>
        /// <returns>returns menu.</returns>
        public static IMenuItem MakeMenu(ISonarRestService rest, IssueGridViewModel model, INotificationManager notmanager)
        {
            var topLel = new AssignTagMenu(rest, model, notmanager)
            {
                CommandText = "Tags", IsEnabled = false
            };

            topLel.SubItems.Add(new AssignTagMenu(rest, model, notmanager)
            {
                CommandText = "assign tag", IsEnabled = true
            });
            topLel.SubItems.Add(new AssignTagMenu(rest, model, notmanager)
            {
                CommandText = "remove tags", IsEnabled = true
            });
            return(topLel);
        }
 /// <summary>
 /// Makes the menu.
 /// </summary>
 /// <param name="rest">The rest.</param>
 /// <param name="model">The model.</param>
 /// <param name="notmanager">The notmanager.</param>
 /// <returns>returns menu.</returns>
 public static IMenuItem MakeMenu(ISonarRestService rest, IssueGridViewModel model, INotificationManager notmanager)
 {
     var topLel = new AssignTagMenu(rest, model, notmanager) { CommandText = "Tags", IsEnabled = false };
     topLel.SubItems.Add(new AssignTagMenu(rest, model, notmanager) { CommandText = "assign tag", IsEnabled = true });
     topLel.SubItems.Add(new AssignTagMenu(rest, model, notmanager) { CommandText = "remove tags", IsEnabled = true });
     return topLel;
 }