public ServiceNoteList() { InitializeComponent(); dateTimePickerDate.MaxDate = DateTime.Now; dgvServiceNote.AutoGenerateColumns = false; txtTotalMoney.KeyPress += TxtMoney_KeyPress; Load += ServiceNoteList_Load; dgvServiceNote.SelectionChanged += DgvServiceNote_SelectionChanged; this.resetUI(); this.serviceNoteBLT = new ServiceNoteBLT(); this.contractBLT = new ContractBLT(); this.roomBLT = new RoomBLT(); this.tollBillsBLT = new TollBillsBLT(); cmbContractId.DataSource = contractBLT.getListContract(); cmbContractId.DisplayMember = "ID"; cmbContractId.ValueMember = "ID"; cmbRoomName.DataSource = roomBLT.getListRoom(); cmbRoomName.DisplayMember = "NAME"; cmbRoomName.ValueMember = "NAME"; dgvServiceNote.DataSource = serviceNoteBLT.getListServiceNote(); }
public ServiceNoteList() { InitializeComponent(); txtTotalMoney.KeyPress += TxtMoney_KeyPress; Load += ServiceNoteList_Load; dgvServiceNote.SelectionChanged += DgvServiceNote_SelectionChanged; this.resetUI(); this.serviceNoteBLT = new ServiceNoteBLT(); this.dgvServiceNote.DataSource = serviceNoteBLT.getListServiceNote(); }