Exemplo n.º 1
0
 public void ShowMessage(string message, ICommand command, bool showToolTips = true, Guid guid = default(Guid))
 {
     manager = serviceProvider.GetService <ITeamExplorer, ITeamExplorerNotificationManager>();
     manager?.ShowNotification(
         message,
         NotificationType.Information,
         showToolTips ? NotificationFlags.None : NotificationFlags.NoTooltips,
         command,
         guid);
 }
 public void ShowError(string message)
 {
     manager = serviceProvider.TryGetService <ITeamExplorer>() as ITeamExplorerNotificationManager;
     manager?.ShowNotification(message, NotificationType.Error, NotificationFlags.None, null, default(Guid));
 }
 public void ShowMessage(string message, ICommand command)
 {
     manager = serviceProvider.TryGetService <ITeamExplorer>() as ITeamExplorerNotificationManager;
     manager?.ShowNotification(message, NotificationType.Information, NotificationFlags.None, command, default(Guid));
 }
Exemplo n.º 4
0
 public void ShowWarning(string message)
 {
     manager = serviceProvider.GetService <ITeamExplorer, ITeamExplorerNotificationManager>();
     manager?.ShowNotification(message, NotificationType.Warning, NotificationFlags.None, null, default(Guid));
 }