public static bool OtherInstancesRunning() { // Disallow multiple instances if (FileUtils.IsACATRunning()) { return(true); } if (FileUtils.AreMultipleInstancesRunning()) { MessageBox.Show("Another instance of " + Process.GetCurrentProcess().ProcessName + " is running. Please exit the app or terminate it from Task Manager and retry", Common.AppPreferences.AppName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return(true); } return(false); }