示例#1
0
        public Stall(string type)
        {
            // Argument constraints
            if (String.IsNullOrEmpty(type))
                throw new ArgumentException("A stall must have a type", "type");

            _type = type;
            _state = StallState.Closed;
        }
示例#2
0
        public Stall(string type)
        {
            // Argument constraints
            if (String.IsNullOrEmpty(type))
            {
                throw new ArgumentException("A stall must have a type", "type");
            }

            _type  = type;
            _state = StallState.Closed;
        }
示例#3
0
 public void Open()
 {
     _state = StallState.Open;
 }
示例#4
0
 public void Close()
 {
     _state = StallState.Closed;
 }
示例#5
0
 public void Close()
 {
     _state = StallState.Closed;
 }
示例#6
0
 public void Open()
 {
     _state = StallState.Open;
 }