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