Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public string GetDepth(DepthOfCondition dep)
 {
     return(_depthTranslator[dep]);
 }
Exemplo n.º 3
0
 public Condition(string name, string objectivily)
 {
     this._depth       = DepthOfCondition.none;
     this.Name         = name;
     this._description = objectivily;
 }
Exemplo n.º 4
0
 public Condition(string name)
 {
     this._depth = DepthOfCondition.none;
     this.Name   = name;
 }