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)); }
public void HideNotification(Guid guid) { manager = serviceProvider.GetService <ITeamExplorer, ITeamExplorerNotificationManager>(); manager?.HideNotification(guid); }
public void ShowWarning(string message) { manager = serviceProvider.GetService <ITeamExplorer, ITeamExplorerNotificationManager>(); manager?.ShowNotification(message, NotificationType.Warning, NotificationFlags.None, null, default(Guid)); }
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)); }
public void ShowMessage(string message, ICommand command) { manager = serviceProvider.TryGetService<ITeamExplorer>() as ITeamExplorerNotificationManager; manager?.ShowNotification(message, NotificationType.Information, NotificationFlags.None, command, default(Guid)); }