コード例 #1
0
        public CommonDialogWindowBase(string title, double width, double height)
        {
            Title  = title;
            Width  = width;
            Height = height;

            // Common settings to all dialogs.
            ResizeMode            = System.Windows.ResizeMode.NoResize;
            WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
            ShowInTaskbar         = false;

            // Report that this window is opened.
            ExtensionAnalytics.ReportScreenView(this);
        }
コード例 #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);
        }