private void ChangeRepositoryButton_Click(object sender, EventArgs e) { DesignateRepositoriesDialog dialog = new DesignateRepositoriesDialog(); if (DialogResult.OK == dialog.ShowDialog()) { PopulateRepositoryList(); } }
private void designateRepository() { DesignateRepositoriesDialog designateRepositoriesDialog = new DesignateRepositoriesDialog(); DialogResult result = designateRepositoriesDialog.ShowDialog(); if (result == DialogResult.OK) { updateRepositoryPath(); setEnables(); } }
private void DesignateRepositories() { DesignateRepositoriesDialog designateRepositoriesDialog = new DesignateRepositoriesDialog(repositoryDirectoryList); DialogResult result = designateRepositoriesDialog.ShowDialog(); if (result == DialogResult.OK) { List <string> dirs = designateRepositoriesDialog.RepositoryDirectoryList; repositoryDirectoryList = new List <string>(dirs); repositoryDirectoryListLabel.Text = RepositoryClass.Instance.MakeRepositoryDirectoryListString(dirs); // filesListBox.Items.Clear(); // foreach (string dir in dirs) // filesListBox.Items.Add(dir); } }