CheckForRequirements() public static method

public static CheckForRequirements ( List patches ) : bool
patches List
return bool
Beispiel #1
0
        private void buttonLaunch_Click(object sender, EventArgs e)
        {
            try
            {
                // Check for patch requirements
                if (!PatchInfo.CheckForRequirements(patches))
                {
                    return;
                }

                // Check for patch conflicts
                if (!PatchInfo.CheckForConflicts(patches))
                {
                    return;
                }

                // Save config
                SaveControls();
                config.Save();

                // Error Handling
                if (!CheckForErrors())
                {
                    return;
                }

                // Launch
                Process.Start(config.portPath, BuildCommandLine());
            }
            catch (Exception ex)
            {
                Utils.ShowError(ex);
            }
        }
Beispiel #2
0
 private void buttonCopyCommandClipboard_Click(object sender, EventArgs e)
 {
     PatchInfo.CheckForRequirements(patches);
     PatchInfo.CheckForConflicts(patches);
     SaveControls();
     config.Save();
     Clipboard.SetText("\"" + config.portPath + "\"" + BuildCommandLine());
 }