/*private void DSPhong_Load(object sender, EventArgs e) * { * PhongData data = new PhongData(); * listViewEx1.Items.Clear(); * foreach (DataRow dr in data.LayMaPhong().Rows) * { * PhongInFo phong = new PhongInFo(); * phong.MaLoaiPhong = (string)dr.ItemArray[1]; * phong.MaPhong = (string)dr.ItemArray[0]; * phong.TinhTrangPhong = (int)dr.ItemArray[2]; * ListViewItem item = new ListViewItem(phong.MaPhong); * * if (phong.TinhTrangPhong == 1) * { * item.ImageIndex = 0; * * } * else if (phong.TinhTrangPhong == 2) * { * item.ImageIndex = 1; * } * else * { * item.ImageIndex = 2; * } * * listViewEx1.Items.Add(item); * } * * }*/ private void traPhongToolStripMenuItem_Click(object sender, EventArgs e) { HoaDon hd = new HoaDon(); hd.ShowDialog(); }
private void buttonX3_Click(object sender, EventArgs e) { HoaDon hd = new HoaDon(); hd.ShowDialog(); }