/// <summary> /// User clicked on the Create button /// Run the new repo wizard to create/clone/pull that missing repo /// </summary> private void BtCreateClick(object sender, EventArgs e) { // We are sure that one and only one repo will be selected ClassRepo repo = list.SelectedItems[0].Tag as ClassRepo; string root = PanelRepos.NewRepoWizard(null, repo, null); if (!string.IsNullOrEmpty(root)) { repo.Path = root; FormRepoEdit repoEdit = new FormRepoEdit(repo); repoEdit.ShowDialog(); // Modify our list of repos to show the new path list.SelectedItems[0].Tag = repo; RefreshView(); } }
/// <summary> /// User clicked on the Create button /// Run the new repo wizard to create/clone/pull that missing repo /// </summary> private void BtCreateClick(object sender, EventArgs e) { // We are sure that one and only one repo will be selected ClassRepo repo = list.SelectedItems[0].Tag as ClassRepo; string root = PanelRepos.NewRepoWizard(null, repo); if (!string.IsNullOrEmpty(root)) { repo.Root = root; FormRepoEdit repoEdit = new FormRepoEdit(repo); repoEdit.ShowDialog(); // Modify our list of repos to show the new path list.SelectedItems[0].Tag = repo; RefreshView(); } }