示例#1
0
 public void setCharacteristic(params string[] data)
 {
     Goptions.feel = (Feel)_feel.Trait;
     Goptions.moisturemanagement = (MoistureManagement)_moisture.Trait;
     Goptions.alignmentaid       = (AlignmentAid)_alignment.Trait;
     gripOptions = Goptions;
 }
示例#2
0
 public void setCharacteristic(params string[] gripName)
 {
     for (int a = 0; a < data.Length; a++) //data is the list of putters that fit, not data passed in
     {
         if (data[a].Contains(gripName[0]))
         {
             for (int c = 0; c < 3; c++)
             {
                 if (((MoistureManagement)c).ToString() == data[a].Split('\u00BB')[1])
                 {
                     Goptions.moisturemanagement = (MoistureManagement)c;
                 }
             }
             for (int c = 0; c < 2; c++)
             {
                 if (((AlignmentAid)c).ToString() == data[a].Split('\u00BB')[2])
                 {
                     Goptions.alignmentaid = (AlignmentAid)c;
                 }
                 if (((Feel)c).ToString() == data[a].Split('\u00BB')[3])
                 {
                     Goptions.feel = (Feel)c;
                 }
             }
             gripOptions = Goptions;
         }
     }
 }