public RoomTypeEdit(RoomType roomType) { InitializeComponent(); this.roomTypeBLT = new RoomTypeBLT(); this.Text = "Edit room type"; txtId.Text = roomType.Id; txtName.Text = roomType.Name; txtPrice.Text = roomType.Price.ToString(); txtDeposit.Text = roomType.Deposit.ToString(); txtNote.Text = roomType.Note; }
public RoomTypeList() { InitializeComponent(); txtDeposit.KeyPress += TxtMoney_KeyPress; txtPrice.KeyPress += TxtMoney_KeyPress; Load += RoomTypeList_Load; dgvRoomType.SelectionChanged += DgvRoomType_SelectionChanged; this.resetUI(); this.roomTypeBLT = new RoomTypeBLT(); this.dgvRoomType.DataSource = roomTypeBLT.getListRoomType(); }
public RoomTypeEdit() { InitializeComponent(); this.roomTypeBLT = new RoomTypeBLT(); this.Text = "Add room type"; }