예제 #1
0
        private string _ShowFolderDialogForItemsToDownload()
        {
            if (programDownloadList.CheckedItems.Count == 0)
            {
                MessageUtilClass.ShowMessage(Constants.DialogWarningMessage);
                return(null);
            }

            return(_ShowFolderDialogOrFileDialogAndGetPath(new FolderBrowserDialog()));
        }
예제 #2
0
        private void _AddItemsToCheckedListFromConfigurationFile(string directoryPath)
        {
            programDownloadList.Items.Clear();
            var programsList = UtilClass.GetProgramsFromConfigurationString
                                   (_appFileService.OpenFile(directoryPath));

            if (programsList == null)
            {
                MessageUtilClass.ShowMessage(Constants.FileNotFoundWarningMessage);
                return;
            }

            programsList.ForEach(program => programDownloadList.Items.Add(program));
            programDownloadList.Refresh();
        }