📄 infoform.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using HotelManagerModels;
using HotelManagerBLL;
namespace HotelManager
{
public partial class InfoForm : Form
{
public InfoForm()
{
InitializeComponent();
}
private void btnExit_Click(object sender, EventArgs e)
{
////退房
//RoomOperation ro = new RoomOperation();
//ro.ID = id;
//ro.EndTime = DateTime.Now;
////价钱
//try
//{
// bll.UpdateRoomOperation(ro);
// roombll.UpdateStatusId2ByNumber(cboRoomNumber.SelectedItem.ToString());
//}
//catch (Exception ex)
//{
// MessageBox.Show(ex.Message);
//}
}
private void InfoForm_Load(object sender, EventArgs e)
{
RoomOperationBLL bll = new RoomOperationBLL();
DataTable dt = bll.SelectRoomInfoAnnal();
dataGridView1.DataSource = dt;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -