Exemple #1
0
 public PentagramValuesModel(int heat, int humidity, int dryness, int cold, int wind)
 {
     Heat = new PentagramValueModel {
         Value = heat, Position = 0
     };
     Humidity = new PentagramValueModel {
         Value = humidity, Position = 1
     };
     Dryness = new PentagramValueModel {
         Value = dryness, Position = 2
     };
     Cold = new PentagramValueModel {
         Value = cold, Position = 3
     };
     Wind = new PentagramValueModel {
         Value = wind, Position = 4
     };
 }
Exemple #2
0
 public PentagramValuesModel()
 {
     Heat = new PentagramValueModel {
         Position = 0
     };
     Humidity = new PentagramValueModel {
         Position = 1
     };
     Dryness = new PentagramValueModel {
         Position = 2
     };
     Cold = new PentagramValueModel {
         Position = 3
     };
     Wind = new PentagramValueModel {
         Position = 4
     };
 }
Exemple #3
0
 private static void SetColors(PentagramValueModel innerPentagramValueModel,
                               PentagramValueModel outerPentagramValueModel, Color outerColor)
 {
     outerPentagramValueModel.Color = outerColor;
     innerPentagramValueModel.Color = outerColor == Colors.Blue ? Colors.Red : Colors.Blue;
 }