private void AddScore(ETransformationType transformationType, bool sameEnergy, int factor = 1, int sparkFactor = 0) { switch (transformationType) { case ETransformationType.Same: Score.AddSameScore(ECompatibilityScore.ExtremelyHigh, factor); Score.AddHarmonyScore(ECompatibilityScore.ExtremelyHigh, factor); Score.AddConflictScore(ECompatibilityScore.ExtremelyLow, factor); Score.AddSupportScore(ECompatibilityScore.Medium, factor); Score.AddMutualUnderstandingScore(ECompatibilityScore.ExtremelyHigh, factor); Score.AddComplementarityScore(sameEnergy ? ECompatibilityScore.ExtremelyLow : ECompatibilityScore.Low, factor); Score.AddSexualChemistryScore(sameEnergy ? ESexualChemistryScore.NonExistant : ESexualChemistryScore.Low, factor + sparkFactor); Score.AddSparkScore(sameEnergy ? ECompatibilityScore.ExtremelyLow : ECompatibilityScore.Low, factor + sparkFactor); Score.AddLearningPotentialScore(sameEnergy ? ECompatibilityScore.VeryLow : ECompatibilityScore.Low, factor); break; case ETransformationType.Supports: case ETransformationType.IsSupported: Score.AddSupportiveScore(ECompatibilityScore.ExtremelyHigh, factor); Score.AddHarmonyScore(ECompatibilityScore.VeryHigh, factor); Score.AddConflictScore(ECompatibilityScore.VeryLow, factor); Score.AddSupportScore(ECompatibilityScore.ExtremelyHigh, factor); Score.AddMutualUnderstandingScore(ECompatibilityScore.High, factor); Score.AddComplementarityScore(ECompatibilityScore.ExtremelyHigh, factor); Score.AddSexualChemistryScore(ESexualChemistryScore.High, factor); Score.AddSparkScore(ECompatibilityScore.High, factor); Score.AddLearningPotentialScore(ECompatibilityScore.MediumToHigh, factor); break; case ETransformationType.Challenges: case ETransformationType.IsChallenged: Score.AddChallengingScore(ECompatibilityScore.ExtremelyHigh, factor); Score.AddHarmonyScore(ECompatibilityScore.ExtremelyLow, factor); Score.AddConflictScore(ECompatibilityScore.ExtremelyHigh, factor); Score.AddSupportScore(ECompatibilityScore.MediumToHigh, factor); Score.AddMutualUnderstandingScore(ECompatibilityScore.VeryLow, factor); Score.AddComplementarityScore(ECompatibilityScore.High, factor); Score.AddSexualChemistryScore(ESexualChemistryScore.OffTheCharts, factor + sparkFactor); Score.AddSparkScore(ECompatibilityScore.ExtremelyHigh, factor + sparkFactor); Score.AddLearningPotentialScore(ECompatibilityScore.ExtremelyHigh, factor); break; } }
private string GetChallengingCompatibilityDetails(ETransformationType transformationType, NineStarKiEnergy energy1, NineStarKiEnergy energy2, string type1Name, string type2Name, PersonModel person1, PersonModel person2, bool titleOnly = false) { var sb = new StringBuilder(); sb.Append(GetTransformationDetails(GetTransformationDetailItem( transformationType, energy1, energy2, type1Name, type2Name, "challenges", ETransformationType.Challenges, ETransformationType.IsChallenged, person1, person2, titleOnly))); return(sb.ToString()); }
Tuple <ETransformationType, ETransformationType, PersonModel, PersonModel, bool> > GetTransformationDetailItem( ETransformationType transformationType, NineStarKiEnergy energy1, NineStarKiEnergy energy2, string type1Name, string type2Name, string verb, ETransformationType comparisonTransformationType1, ETransformationType comparisonTransformationType2, PersonModel person1, PersonModel person2, bool titleOnly) { return(new Tuple <ETransformationType, NineStarKiEnergy, NineStarKiEnergy, string, string, string, Tuple <ETransformationType, ETransformationType, PersonModel, PersonModel, bool> >( transformationType, energy1, energy2, type1Name, type2Name, verb, new Tuple <ETransformationType, ETransformationType, PersonModel, PersonModel, bool>( comparisonTransformationType1, comparisonTransformationType2, person1, person2, titleOnly) )); }
private void AddCrossReferencedScore(ETransformationType transformationType, int factor = 1) { switch (transformationType) { case ETransformationType.Same: Score.AddSameScore(ECompatibilityScore.ExtremelyHigh, factor); Score.AddHarmonyScore(ECompatibilityScore.High, factor); Score.AddConflictScore(ECompatibilityScore.Low, factor); Score.AddSupportScore(ECompatibilityScore.High, factor); Score.AddMutualUnderstandingScore(ECompatibilityScore.High, factor); Score.AddComplementarityScore(ECompatibilityScore.Low, factor); Score.AddLearningPotentialScore(ECompatibilityScore.LowToMedium, factor); break; case ETransformationType.Supports: case ETransformationType.IsSupported: Score.AddSupportiveScore(ECompatibilityScore.ExtremelyHigh, factor); Score.AddHarmonyScore(ECompatibilityScore.High, factor); Score.AddConflictScore(ECompatibilityScore.Low, factor); Score.AddSupportScore(ECompatibilityScore.High, factor); Score.AddMutualUnderstandingScore(ECompatibilityScore.High, factor); Score.AddComplementarityScore(ECompatibilityScore.High, factor); Score.AddLearningPotentialScore(ECompatibilityScore.MediumToHigh, factor); break; case ETransformationType.Challenges: case ETransformationType.IsChallenged: Score.AddChallengingScore(ECompatibilityScore.ExtremelyHigh, factor); Score.AddHarmonyScore(ECompatibilityScore.Low, factor); Score.AddConflictScore(ECompatibilityScore.High, factor); Score.AddSupportScore(ECompatibilityScore.MediumToHigh, factor); Score.AddMutualUnderstandingScore(ECompatibilityScore.Low, factor); Score.AddComplementarityScore(ECompatibilityScore.High, factor); Score.AddLearningPotentialScore(ECompatibilityScore.High, factor); break; } }
private bool IsChallenging(ETransformationType transformationType) { return(new List <ETransformationType> { ETransformationType.IsChallenged, ETransformationType.Challenges }.Contains(transformationType)); }
private bool IsSame(ETransformationType transformationType) { return(transformationType == ETransformationType.Same); }
private bool IsSupportive(ETransformationType transformationType) { return(new List <ETransformationType> { ETransformationType.IsSupported, ETransformationType.Supports }.Contains(transformationType)); }
public void Init() { this.fPrimitives = new ArrayList(); Chart.Pad = this; this.VN5zSfcsG = new Pad.AxisManager(this); this.fBackColor = Color.LightGray; this.fForeColor = Color.White; this.fX1 = 0; this.fX2 = 1; this.fY1 = 0; this.fY2 = 1; this.fWidth = this.fChart.ClientSize.Width; this.fHeight = this.fChart.ClientSize.Height; this.fClientX = 10; this.fClientY = 10; this.fClientWidth = 0; this.fClientHeight = 0; this.fMarginLeft = 10; this.fMarginRight = 20; this.fMarginTop = 10; this.fMarginBottom = 10; this.fTitle = new TTitle(this, ""); this.fTitleEnabled = true; this.fTitleOffsetX = 5; this.fTitleOffsetY = 5; this.fTransformation = (IChartTransformation)new TIntradayTransformation(); this.fTransformationType = ETransformationType.Empty; this.fSessionGridColor = Color.Blue; this.fAxisLeft = new Axis(this, EAxisPosition.Left); this.fAxisRight = new Axis(this, EAxisPosition.Right); this.fAxisTop = new Axis(this, EAxisPosition.Top); this.fAxisBottom = new Axis(this, EAxisPosition.Bottom); this.fAxisRight.LabelEnabled = false; this.fAxisRight.TitleEnabled = false; this.fAxisTop.LabelEnabled = false; this.fAxisTop.TitleEnabled = false; this.fLegend = new TLegend(this); this.fLegendEnabled = false; this.fLegendPosition = ELegendPosition.TopRight; this.fLegendOffsetX = 5; this.fLegendOffsetY = 5; this.fBorderEnabled = true; this.fBorderColor = Color.Black; this.fBorderWidth = 1; this.SetRange(0.0, 100.0, 0.0, 100.0); this.fGraphics = (Graphics)null; this.fOnAxis = false; this.fOnPrimitive = false; this.fMouseDown = false; this.fMouseDownX = 0; this.fMouseDownY = 0; this.fOutlineEnabled = false; this.fWindowSize = 600; this.fLastTickTime = 0; this.fUpdateInterval = 1; this.fLastUpdateDateTime = DateTime.Now; this.Monitored = false; this.fUpdating = false; this.fMouseZoomEnabled = true; this.fMouseZoomXAxisEnabled = true; this.fMouseZoomYAxisEnabled = true; this.fMouseUnzoomEnabled = true; this.fMouseUnzoomXAxisEnabled = true; this.fMouseUnzoomYAxisEnabled = true; this.fMouseMoveContentEnabled = true; this.fMouseMovePrimitiveEnabled = true; this.fMouseDeletePrimitiveEnabled = true; this.fMousePadPropertiesEnabled = true; this.fMousePrimitivePropertiesEnabled = true; this.fMouseContextMenuEnabled = true; this.fMouseWheelEnabled = true; this.fMouseWheelSensitivity = 0.1; this.fMouseWheelMode = EMouseWheelMode.ZoomX; }