예제 #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 ClearNotifications()
 {
     manager = serviceProvider.TryGetService <ITeamExplorer>() as ITeamExplorerNotificationManager;
     manager?.ClearNotifications();
 }
 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));
 }
예제 #5
0
 public void HideNotification(Guid guid)
 {
     manager = serviceProvider.GetService <ITeamExplorer, ITeamExplorerNotificationManager>();
     manager?.HideNotification(guid);
 }
예제 #6
0
 public void ShowWarning(string message)
 {
     manager = serviceProvider.GetService <ITeamExplorer, ITeamExplorerNotificationManager>();
     manager?.ShowNotification(message, NotificationType.Warning, NotificationFlags.None, null, default(Guid));
 }
예제 #7
0
 public bool IsNotificationVisible(Guid guid)
 {
     manager = serviceProvider.GetService <ITeamExplorer, ITeamExplorerNotificationManager>();
     return(manager?.IsNotificationVisible(guid) ?? false);
 }
예제 #8
0
 public void ClearNotifications()
 {
     manager = serviceProvider.TryGetService<ITeamExplorer>() as ITeamExplorerNotificationManager;
     manager?.ClearNotifications();
 }
예제 #9
0
 public void ShowError(string message)
 {
     manager = serviceProvider.TryGetService<ITeamExplorer>() as ITeamExplorerNotificationManager;
     manager?.ShowNotification(message, NotificationType.Error, NotificationFlags.None, null, default(Guid));
 }
예제 #10
0
 public void ShowMessage(string message, ICommand command)
 {
     manager = serviceProvider.TryGetService<ITeamExplorer>() as ITeamExplorerNotificationManager;
     manager?.ShowNotification(message, NotificationType.Information, NotificationFlags.None, command, default(Guid));
 }