@@ -1691,7 +1691,20 @@ private void buttonCreateBackupScript_Click(object sender, EventArgs e)
16911691 backupScript = GenerateUniqueFileName ( backupScript ) ;
16921692 CreateNewFile ( backupScript ) ;
16931693 AddBeginningOfBackupScript ( backupScript ) ;
1694+ listViewVSProjects . Items . Clear ( ) ;
1695+
1696+ listViewVSProjects . Columns . Add ( "To be updated" , 240 , HorizontalAlignment . Left ) ;
1697+ listViewVSProjects . Columns . Add ( "Solution Name" , 240 , HorizontalAlignment . Left ) ;
1698+ listViewVSProjects . Columns . Add ( "Solution Path" , 640 , HorizontalAlignment . Left ) ;
1699+ listViewVSProjects . Columns . Add ( "Git URL" , 640 , HorizontalAlignment . Left ) ;
16941700
1701+ listViewVSProjects . View = View . Details ;
1702+ listViewVSProjects . LabelEdit = false ;
1703+ listViewVSProjects . AllowColumnReorder = true ;
1704+ listViewVSProjects . CheckBoxes = true ;
1705+ listViewVSProjects . FullRowSelect = true ;
1706+ listViewVSProjects . GridLines = true ;
1707+ listViewVSProjects . Sorting = SortOrder . None ;
16951708 int projectCount = 0 ;
16961709 foreach ( var directory in Directory . EnumerateDirectories ( textBoxVSProjectPath . Text ) )
16971710 {
@@ -1718,10 +1731,12 @@ private void buttonCreateBackupScript_Click(object sender, EventArgs e)
17181731 ListViewItem item1 = new ListViewItem ( tmpSolNameOnly ) { Checked = true } ;
17191732 item1 . SubItems . Add ( tmpSolNameOnly ) ;
17201733 item1 . SubItems . Add ( tmpSolPath ) ;
1721- if ( ! IsInlistView ( listViewVSProjects , item1 , 2 ) )
1734+ item1 . SubItems . Add ( gitUrl ) ;
1735+ if ( ! IsInlistView ( listViewVSProjects , item1 , 2 ) && gitUrl != string . Empty )
17221736 {
17231737 listViewVSProjects . Items . Add ( item1 ) ;
17241738 projectCount ++ ;
1739+ Application . DoEvents ( ) ;
17251740 }
17261741 }
17271742 }
@@ -1745,9 +1760,10 @@ private void buttonCreateBackupScript_Click(object sender, EventArgs e)
17451760
17461761 foreach ( ListViewItem selectedProj in selectedProjects )
17471762 {
1748- var projectName = selectedProj . Text ;
1749- AddGitCloneToScript ( backupScript , projectName ) ;
1750- Logger . Add ( textBoxLog , Translate ( "Adding the gitted project" ) + Punctuation . OneSpace + projectName ) ;
1763+ var gitUrl = selectedProj . SubItems [ 3 ] . Text ;
1764+ if ( gitUrl == string . Empty ) continue ;
1765+ AddGitCloneToScript ( backupScript , gitUrl ) ;
1766+ Logger . Add ( textBoxLog , Translate ( "Adding the gitted project" ) + Punctuation . OneSpace + gitUrl ) ;
17511767 }
17521768
17531769 AddPauseToFile ( backupScript ) ;
0 commit comments