/// <summary> /// Initializes a new instance of the <see cref="CloudExplorerToolWindow"/> class. /// </summary> public CloudExplorerToolWindow() : base(null) { SetCaption(); _selectionUtils = new SelectionUtils(this); var model = new CloudExplorerViewModel(_selectionUtils); Content = new CloudExplorerToolWindowControl(_selectionUtils) { DataContext = model, }; CredentialsStore.Default.CurrentAccountChanged += OnCurrentAccountChanged; EventsReporterWrapper.ReportEvent(CloudExplorerInteractionEvent.Create()); }
/// <summary> /// Initializes a new instance of the <see cref="CloudExplorerToolWindow"/> class. /// </summary> public CloudExplorerToolWindow() : base(null) { SetCaption(); _selectionUtils = new SelectionUtils(this); var model = new CloudExplorerViewModel(_selectionUtils); Content = new CloudExplorerToolWindowControl(_selectionUtils) { DataContext = model, }; CredentialsStore.Default.CurrentAccountChanged += OnCurrentAccountChanged; CredentialsStore.Default.Reset += OnCurrentAccountChanged; ExtensionAnalytics.ReportScreenView(this); }