private void Cancel(object sender, RoutedEventArgs e) { UserControl usc = null; usc = new RoomChecking(connectData, maPhong); Global.mainNavigate.Children.Add(usc); }
private void ListviewDoubleClick(object sender, MouseButtonEventArgs e) { var selectedItem = sender as ListViewItem; Room dataItem = (Room)LV_ListRoom.ItemContainerGenerator.ItemFromContainer(selectedItem); UserControl usc = null; usc = new RoomChecking(connectData, dataItem.MaPhong); Global.mainNavigate.Children.Add(usc); }
private void click_btnSave(object sender, RoutedEventArgs e) { string loaiPhong = cbbLP.SelectedItem.ToString(); int i = 0; while (infoTypeOfRoom[i].LoaiPhong.Trim() != loaiPhong) { i++; } connectData.updateInfoRoom(maP, infoTypeOfRoom[i].MaLP, txtghiChu.Text); UserControl usc = null; usc = new RoomChecking(connectData, maP); Global.mainNavigate.Children.Add(usc); }