Beispiel #1
0
        /// <summary>
        /// Provides logic to move menu items up/down
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CreateDownLoadBatchFileButton_Click(object sender, EventArgs e)
        {
            if (RepositoryListBox.DataSource == null || string.IsNullOrWhiteSpace(RepositoryListBox.Text))
            {
                return;
            }

            var directories   = GitOperations.Directories(RepositoryTextBox.Text, RepositoryListBox.Text);
            var directoryList = directories.Where(item => item.type == "dir").Select(item => item.name).ToList();

            var f = new CreateDownloadBatchForm(directoryList, HtmlUrlTextBox.Text);

            try
            {
                f.ShowDialog();
            }
            finally
            {
                f.Dispose();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Temp code for testing
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FoldersForSelectedButton_Click(object sender, EventArgs e)
        {
            if (RepositoryListBox.DataSource == null || string.IsNullOrWhiteSpace(RepositoryListBox.Text))
            {
                return;
            }

            var directories       = GitOperations.Directories(RepositoryTextBox.Text, RepositoryListBox.Text);
            var directoryNameList = directories.Where(item => item.type == "dir").Select(item => item.name).ToList();

            var repoDirectoryForm = new RepositoryDirectoryForm(directoryNameList);

            try
            {
                repoDirectoryForm.ShowDialog();
            }
            finally
            {
                repoDirectoryForm.Dispose();
            }
        }