protected override bool CanDoNext() { if (!base.CanDoNext()) { return(false); } if (this.curScen == null) { return(false); } Page_SelectScenario.BeginScenarioConfiguration(this.curScen, this); return(true); }
private static void RecacheData() { ScenarioLister.dirty = false; int num = ScenarioLister.ScenarioListHash(); ScenarioFiles.RecacheData(); if (ScenarioLister.ScenarioListHash() != num && !LongEventHandler.ShouldWaitForEvent) { Page_SelectScenario page_SelectScenario = Find.WindowStack.WindowOfType <Page_SelectScenario>(); if (page_SelectScenario != null) { page_SelectScenario.Notify_ScenarioListChanged(); } } }
protected override bool CanDoNext() { if (!base.CanDoNext()) { return(false); } if (this.curScen == null) { return(false); } if (!Page_ScenarioEditor.CheckAllPartsCompatible(this.curScen)) { return(false); } Page_SelectScenario.BeginScenarioConfiguration(this.curScen, this); return(true); }
protected override bool CanDoNext() { bool result; if (!base.CanDoNext()) { result = false; } else if (this.curScen == null) { result = false; } else { Page_SelectScenario.BeginScenarioConfiguration(this.curScen, this); result = true; } return(result); }