public MainWindow()
        {
            InitializeComponent();

            DeployDialog dlg = new DeployDialog() { Width = 550, Height = 350 };
            dlg.Show();
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this._this = ((Pivotal.CFDeployExtension.Dialogs.DeployDialog)(target));
     return;
     }
     this._contentLoaded = true;
 }
        /// <summary>
        /// This function is the callback used to execute a command when the a menu item is clicked.
        /// See the Initialize method to see how the menu item is associated to this function using
        /// the OleMenuCommandService service and the MenuCommand class.
        /// </summary>
        private void MenuItemCallback(object sender, EventArgs e)
        {
            var dte = GetService(typeof(SDTE)) as DTE;
            if (dte.SelectedItems.Count <= 0) return;

            foreach (SelectedItem selectedItem in dte.SelectedItems)
            {
                var projectItem = selectedItem.Project;

                var fullPathProperty = projectItem.Properties.Item("FullPath");
                if (fullPathProperty == null) return;
                var fullPath = fullPathProperty.Value.ToString();
                MessageBox.Show(string.Format("Required '{0}'.", fullPath));

                DeployDialog dlg = new DeployDialog();
                dlg.Show();

            }
        }