public string DetermineIsoFolderStructure(ProgressBar instance) { if (Directory.Exists(BaseDirectoryPath + "files")) { BaseDirectoryPath += @"files\"; return(BaseDirectoryPath); } else if (Directory.Exists(BaseDirectoryPath + "data")) { BaseDirectoryPath += @"data\files\"; return(BaseDirectoryPath); } else { instance.SetProgressBarLabel("Error: The working directory is missing or empty!"); instance.SetButtonToClose(); return(null); } }
public static void ThrowOutputFilePathCannotBeBlankError(ProgressBar progressBar) { progressBar.SetProgressBarLabel("Error: The output file path cannot be blank!"); progressBar.SetProgressBarValue(100); progressBar.SetButtonToGoBack(); }
public static void ThrowSourceIsoCouldNotBeOpenedError(ProgressBar progressBar) { progressBar.SetProgressBarLabel("Error: The source ISO could not be opened."); progressBar.SetProgressBarValue(100); progressBar.SetButtonToGoBack(); }