Example #1
0
 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;
 }
Example #2
0
        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();
        }
Example #3
0
 public RoomTypeEdit()
 {
     InitializeComponent();
     this.roomTypeBLT = new RoomTypeBLT();
     this.Text = "Add room type";
 }