Exemple #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;
        }
        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;
        }
Exemple #3
0
 public void Open()
 {
     _state = StallState.Open;
 }
Exemple #4
0
 public void Close()
 {
     _state = StallState.Closed;
 }
 public void Close()
 {
     _state = StallState.Closed;
 }
 public void Open()
 {
     _state = StallState.Open;
 }