コード例 #1
0
        private void ChangeRepositoryButton_Click(object sender, EventArgs e)
        {
            DesignateRepositoriesDialog dialog = new DesignateRepositoriesDialog();

            if (DialogResult.OK == dialog.ShowDialog())
            {
                PopulateRepositoryList();
            }
        }
コード例 #2
0
        private void designateRepository()
        {
            DesignateRepositoriesDialog designateRepositoriesDialog = new DesignateRepositoriesDialog();
            DialogResult result = designateRepositoriesDialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                updateRepositoryPath();
                setEnables();
            }
        }
コード例 #3
0
        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);
            }
        }