This class is the view model for the Cloud Explore tool window.
Inheritance: GoogleCloudExtension.Utils.ViewModelBase, ICloudSourceContext
        /// <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());
        }
Beispiel #2
0
        /// <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);
        }