Пример #1
0
 protected override void DoCommandAction()
 {
     LineManager.Orienation orienation = LineManager.Orienation.Undefined;
     if (Orientation.Equals("H"))
     {
         orienation = LineManager.Orienation.Horizontal;
     }
     else if (Orientation.Equals("V"))
     {
         orienation = LineManager.Orienation.Vertical;
     }
     else
     {
         throw new ArgumentException("The paramter Orientation only supports either H or V");
     }
     LineManager.Instance.AddSetting(FamilyRegexp, orienation, Offset, IdentifierRegexp);
 }
Пример #2
0
 public LineParameter(LineManager.Orienation orientation, int offset, string tileIdentifierRegexp)
 {
     m_orientation          = orientation;
     m_offset               = offset;
     m_tileIdentifierRegexp = new Regex(tileIdentifierRegexp, RegexOptions.Compiled);
 }