/// <summary> /// Deletes this module. This is called from the options menu, /// which promts a confirmation panel, since this actions may lose progress. /// </summary> public virtual void CallDelete() { // We record this action: uiManager.WriteToRecord("Delete " + moduleId.ToString()); if (isActive) { // Active module: set another as active and delete // Sets another module as active uiManager.SetAnotherActive(moduleId); // Now deletes this module uiManager.AskDeleteModule(moduleId); } else { // Not active module: delete uiManager.AskDeleteModule(moduleId); } }