addroomtypecommand.cs
来自「酒店管理系统项目内容 包含当前常用的全部功能」· CS 代码 · 共 34 行
CS
34 行
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 + =
减小字号Ctrl + -
显示快捷键?