Exemplo n.º 1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            String note = tbNote.Text;

            Model.dao.RoomDao rd = new Model.dao.RoomDao();
            if (rd.EditNote(note, RoomName))
            {
                MessageBox.Show("Successfully Saved");
                this.Close();
            }
            else
            {
                MessageBox.Show("Not Saved");
            }
        }
Exemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Model.dao.RoomDao RD       = new Model.dao.RoomDao();
            String            RoomName = RD.GetRoomName(RoomID);

            RD.DisableRoom(2, RoomName);
            RD.EditNote("", RoomName);
            Model.dao.SrvOrderDao SOD = new Model.dao.SrvOrderDao();
            if (SOD.ChangePaymentStatus(RoomID))
            {
                MessageBox.Show("Check Out Sucessfully !");
                this.Close();
            }
            else
            {
                MessageBox.Show("Failed To Check Out !");
            }
        }