public override void Exec()
        {
            UIHierarchy solExplorer = this.ApplicationObject.ToolWindows.SolutionExplorer;
            UIHierarchyItem hierItem = ((UIHierarchyItem)((System.Array)solExplorer.SelectedItems).GetValue(0));
            //SolutionClass solution = hierItem.Object as SolutionClass;

            DeploymentSettings ds = new DeploymentSettings( (Project)hierItem.Object);
            EnhancedDeployWindow dlg = new EnhancedDeployWindow();
            dlg.TargetDatabase = ds.TargetDatabase;
            dlg.TargetServer = ds.TargetServer;
            dlg.SourceObject = (Database)((Project)hierItem.Object).Object;
            dlg.ShowDialog();
        }
        public override void Exec()
        {
            UIHierarchy     solExplorer = this.ApplicationObject.ToolWindows.SolutionExplorer;
            UIHierarchyItem hierItem    = ((UIHierarchyItem)((System.Array)solExplorer.SelectedItems).GetValue(0));
            //SolutionClass solution = hierItem.Object as SolutionClass;

            DeploymentSettings   ds  = new DeploymentSettings((Project)hierItem.Object);
            EnhancedDeployWindow dlg = new EnhancedDeployWindow();

            dlg.TargetDatabase = ds.TargetDatabase;
            dlg.TargetServer   = ds.TargetServer;
            dlg.SourceObject   = (Database)((Project)hierItem.Object).Object;
            dlg.ShowDialog();
        }