private void btnEdit_Click(object sender, RoutedEventArgs e) { UserControl usc = new UI_LapPhieuDatHang(dgvPhieuDatHang.SelectedItem as DTO_PhieuDatHang); UI_ManHinhChinh.gridMain.Children.Clear(); UI_ManHinhChinh.gridMain.Children.Add(usc); }
private void btnLapPhieu_Click(object sender, RoutedEventArgs e) { UserControl usc = new UI_LapPhieuDatHang(); UI_ManHinhChinh.gridMain.Children.Clear(); UI_ManHinhChinh.gridMain.Children.Add(usc); }