public void OnSetupSelected(PartSetupDialog dialog) { this.tier = (int)dialog.Tier; this.body = dialog.Body ?? NotSet; PksTieredResourceConverter.RiskTolerance = dialog.RiskLevel; PksTieredResourceConverter.DefaultPartSetFor = this.part; PksTieredResourceConverter.LastTierSelected = dialog.Tier; if (dialog.Applicability == PartSetupDialog.DecisionImpact.AllParts) { this.SetupAllParts(); } }
public void ChangeTier() => PartSetupDialog.Show(this.outputAsTieredResource, this.Body, this.Tier, this.MaximumTier, this.OnSetupSelected);