/// <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 AssignMenu(rest, model, notmanager) { CommandText = "Assign", IsEnabled = false }; topLel.SubItems.Add(new AssignMenu(rest, model, notmanager) { CommandText = "to user", IsEnabled = true }); topLel.SubItems.Add(new AssignMenu(rest, model, notmanager) { CommandText = "to me", IsEnabled = true }); topLel.SubItems.Add(new AssignMenu(rest, model, notmanager) { CommandText = "assign to author", 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 AssignMenu(rest, model, notmanager) { CommandText = "Assign", IsEnabled = false }; topLel.SubItems.Add(new AssignMenu(rest, model, notmanager) { CommandText = "to user", IsEnabled = true }); topLel.SubItems.Add(new AssignMenu(rest, model, notmanager) { CommandText = "to me", IsEnabled = true }); topLel.SubItems.Add(new AssignMenu(rest, model, notmanager) { CommandText = "assign to author", IsEnabled = true }); return topLel; }