コード例 #1
0
        private void dgvBookingList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (MessageBox.Show("Make a check in?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
            {
                return;
            }
            string selectedBookingId = this.dgvBookingList.Rows[e.RowIndex].Cells[0].Value.ToString();

            CheckInBUS.AddCheckInBaseOnBooking(selectedBookingId);
            this.bookingDTOBindingSource.DataSource = BookingBUS.GetBookings();
            this.checkInDTOBindingSource.DataSource = CheckInBUS.GetCheckIns();
        }
コード例 #2
0
 public void AddCheckInBaseOnBookingTest_TC2()
 {
     CheckInBUS.AddCheckInBaseOnBooking("B0001");
 }
コード例 #3
0
 public void AddCheckInBaseOnBookingTest_TC3()
 {
     CheckInBUS.AddCheckInBaseOnBooking("B696969");
 }
コード例 #4
0
 public void AddCheckInBaseOnBookingTest_TC1()
 {
     CheckInBUS.AddCheckInBaseOnBooking("B0006");
     Assert.IsTrue(true);
 }