private string _ShowFolderDialogForItemsToDownload() { if (programDownloadList.CheckedItems.Count == 0) { MessageUtilClass.ShowMessage(Constants.DialogWarningMessage); return(null); } return(_ShowFolderDialogOrFileDialogAndGetPath(new FolderBrowserDialog())); }
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(); }