예제 #1
0
 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();
     }
 }
예제 #2
0
 public void ChangeTier()
 => PartSetupDialog.Show(this.outputAsTieredResource, this.Body, this.Tier, this.MaximumTier, this.OnSetupSelected);