EditJumpWindow.slCMJDescriptionIsValid C# (CSharp) Method

slCMJDescriptionIsValid() private method

private slCMJDescriptionIsValid ( string description ) : bool
description string
return bool
    private bool slCMJDescriptionIsValid(string description)
    {
        string [] d = description.Split(new char[] {' '});
        if(d.Length != 5)
            return false;
        if(! Util.IsNumber(d[4], false))
            return false;
        if(d[0] != "Vertical" && d[0] != "Horizontal" && d[0] != "Lateral")
            return false;
        if(d[1] != "This" && d[1] != "Opposite" && d[1] != "Unknown")
            return false;
        if(d[2] != "This" && d[2] != "Opposite" && d[2] != "Both")
            return false;

        return true;
    }