CheckForConflicts() public static method

public static CheckForConflicts ( List patches ) : bool
patches List
return bool
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
0
 private void buttonCopyCommandClipboard_Click(object sender, EventArgs e)
 {
     PatchInfo.CheckForRequirements(patches);
     PatchInfo.CheckForConflicts(patches);
     SaveControls();
     config.Save();
     Clipboard.SetText("\"" + config.portPath + "\"" + BuildCommandLine());
 }