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