예제 #1
0
파일: 新版.cs 프로젝트: wsxx111/Work
        public static void 运行()
        {
            房间 r1 = new 房间();

            r1.入住();
            r1.入住();
            r1.预定();
            r1.退订();
            r1.退房();
            //Console.WriteLine(r1.状态.StateTxt);
            Console.ReadKey();
        }
예제 #2
0
파일: 新版.cs 프로젝트: wsxx111/Work
 public 已预定状态(房间 r)
 {
     this.room     = r;
     this.StateTxt = "已预定状态";
 }
예제 #3
0
파일: 新版.cs 프로젝트: wsxx111/Work
 public 空闲状态(房间 r)
 {
     this.room     = r;
     this.StateTxt = "空闲状态";
 }
예제 #4
0
파일: 新版.cs 프로젝트: wsxx111/Work
 public 已入住状态(房间 r)
 {
     this.room     = r;
     this.StateTxt = "已入住状态";
 }