Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 public static void ThrowOutputFilePathCannotBeBlankError(ProgressBar progressBar)
 {
     progressBar.SetProgressBarLabel("Error: The output file path cannot be blank!");
     progressBar.SetProgressBarValue(100);
     progressBar.SetButtonToGoBack();
 }
Ejemplo n.º 3
0
 public static void ThrowSourceIsoCouldNotBeOpenedError(ProgressBar progressBar)
 {
     progressBar.SetProgressBarLabel("Error: The source ISO could not be opened.");
     progressBar.SetProgressBarValue(100);
     progressBar.SetButtonToGoBack();
 }