Пример #1
0
        public static void 运行()
        {
            房间 r1 = new 房间();

            r1.入住();
            r1.入住();
            r1.预定();
            r1.退订();
            r1.退房();
            //Console.WriteLine(r1.状态.StateTxt);
            Console.ReadKey();
        }
Пример #2
0
 public 已预定状态(房间 r)
 {
     this.room     = r;
     this.StateTxt = "已预定状态";
 }
Пример #3
0
 public 空闲状态(房间 r)
 {
     this.room     = r;
     this.StateTxt = "空闲状态";
 }
Пример #4
0
 public 已入住状态(房间 r)
 {
     this.room     = r;
     this.StateTxt = "已入住状态";
 }