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