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