Example #1
0
 public bool SetDepth(string depthName)
 {
     if (availableDepths.Contains(GetDepth(depthName)))
     {
         Depth = GetDepth(depthName);
         return(true);
     }
     //foreach (KeyValuePair<DepthOfCondition, string> kvp in depthDiscriptions)
     //{
     //    if (kvp.Key.ToString() == depthName)
     //    {
     //        Depth = kvp.Key;
     //        return true;
     //    }
     //}
     return(false);
 }
Example #2
0
 public string GetDepth(DepthOfCondition dep)
 {
     return(_depthTranslator[dep]);
 }
Example #3
0
 public Condition(string name, string objectivily)
 {
     this._depth       = DepthOfCondition.none;
     this.Name         = name;
     this._description = objectivily;
 }
Example #4
0
 public Condition(string name)
 {
     this._depth = DepthOfCondition.none;
     this.Name   = name;
 }