public void installExperiment() { availableLabs = expData.getFreeLabsWithEquipment(part.vessel); if (availableLabs.Count > 0) { if (availableLabs.Count == 1) { installExperimentInLab(availableLabs[0]); } else { windowID = WindowCounter.getNextWindowID(); showGui = 3; } } else { NE_Helper.logError("Experiment install: No lab found"); } }
public void installExperiment() { // TODO: Refactor and use the "move" logic // Idea is that if the target is another storage container, the experiment is moved, // and if it is a lab with suitable equipment, then it is installed availableLabs = expData.getFreeLabsWithEquipment(part.vessel); if (availableLabs.Count > 0) { if (availableLabs.Count == 1) { installExperimentInLab(availableLabs[0]); } else { showLabWindow(); } } else { NE_Helper.logError("Experiment install: No lab found"); } }