Esempio n. 1
0
 public static bool deleteExeFromArray(OtherExeContainer deleteExe)
 {
     foreach (OtherExeContainer oEC in otherExesList)
     {
         if (deleteExe.getExe().Equals(oEC.getExe()))
         {
             otherExesList.Remove(oEC);
             return(true);
         }
     }
     return(false);
 }
Esempio n. 2
0
        public static bool setOtherExesArray(OtherExeContainer newExe)
        {
            //Check if the selected file exists and is an executable
            if (File.Exists(newExe.getExe()) && (Path.GetExtension(newExe.getExe()) == ".exe"))
            {
                otherExesList.Add(newExe);
                return(true);
            }
            else
            {
                if (!Program.isStarting)
                {
                    MessageBox.Show("Please specify a Windows Executable.");
                }

                return(false);
            }
        }