Ejemplo n.º 1
0
        public static void SetColors(this SetUpPentagramModel model)
        {
            var pentagramInnerValues = new List <PentagramValueModel>
            {
                model.InnerValues.Heat, model.InnerValues.Humidity, model.InnerValues.Dryness, model.InnerValues.Cold,
                model.InnerValues.Wind
            };
            var pentagramOuterValues = new List <PentagramValueModel>
            {
                model.OuterValues.Heat, model.OuterValues.Humidity, model.OuterValues.Dryness, model.OuterValues.Cold,
                model.OuterValues.Wind
            };


            for (var i = 0; i < 5; i++)
            {
                if (pentagramInnerValues[i].Value > pentagramOuterValues[i].Value)
                {
                    SetColors(pentagramInnerValues[i], pentagramOuterValues[i], Colors.Blue);
                }
                else if (pentagramInnerValues[i].Value < pentagramOuterValues[i].Value)
                {
                    SetColors(pentagramInnerValues[i], pentagramOuterValues[i], Colors.Red);
                }
                else
                {
                    SetColors(pentagramInnerValues[i], pentagramOuterValues[i], ColorsOuterValuesIfEqualValues[i]);
                }
            }

            SetColorsIfUnusual(pentagramInnerValues, pentagramOuterValues);
            SetColorsIfUnusual(pentagramOuterValues, pentagramInnerValues);
        }
Ejemplo n.º 2
0
 public static PentagramValueModel[] GetAllValueModelsOrderBy(this SetUpPentagramModel model)
 {
     return(new[]
     {
         model.OuterValues.Heat,
         model.InnerValues.Heat,
         model.OuterValues.Humidity,
         model.InnerValues.Humidity,
         model.OuterValues.Dryness,
         model.InnerValues.Dryness,
         model.OuterValues.Cold,
         model.InnerValues.Cold,
         model.OuterValues.Wind,
         model.InnerValues.Wind
     });
 }
Ejemplo n.º 3
0
 public static PentagramValueModel[] GetOuterValueModels(this SetUpPentagramModel model)
 {
     return(GetValueModelsBy(model.OuterValues));
 }