⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addroomtypecommand.cs

📁 酒店管理系统项目内容 包含当前常用的全部功能
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using MyHotelModel;
using MyHotelBLL;
using MyHotelIBLL;

namespace MyHotelBLL
{
    public class AddRoomTypeCommand : ICommand
    {
        RoomType _type;
        RoomTypeManager manager;

        public AddRoomTypeCommand()
        {
            manager = new RoomTypeManager();
        }


        public AddRoomTypeCommand(RoomType type) : this() { _type = type; }


        #region ICommand 成员

        public void Ecxecute()
        {
            manager.AddRoomType(_type);
        }

        #endregion
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -