Esempio 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 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));
 }
Esempio n. 5
0
 public void HideNotification(Guid guid)
 {
     manager = serviceProvider.GetService <ITeamExplorer, ITeamExplorerNotificationManager>();
     manager?.HideNotification(guid);
 }
Esempio n. 6
0
 public void ShowWarning(string message)
 {
     manager = serviceProvider.GetService <ITeamExplorer, ITeamExplorerNotificationManager>();
     manager?.ShowNotification(message, NotificationType.Warning, NotificationFlags.None, null, default(Guid));
 }
Esempio n. 7
0
 public bool IsNotificationVisible(Guid guid)
 {
     manager = serviceProvider.GetService <ITeamExplorer, ITeamExplorerNotificationManager>();
     return(manager?.IsNotificationVisible(guid) ?? false);
 }
 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));
 }
Esempio n. 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));
 }