private void Button_Them_Click(object sender, RoutedEventArgs e)
        {
            ThemSanPham them = new ThemSanPham();

            them.ShowDialog();
            NapDuLieuHangHoa();
        }
        public SanPhamContentVM()
        {
            DanhMucSanPhamCommand = new RelayCommand <UserControl>((p) => {
                return(true);
            }, (p) =>
            {
                var w = Window.GetWindow(p) as Window;
                if (w != null)
                {
                    w.Hide();
                    DanhMucSanPham DanhMucForm = new DanhMucSanPham();
                    DanhMucForm.ShowDialog();
                    w.Show();
                }
            });

            LoaiSanPhamCommand = new RelayCommand <UserControl>((p) => {
                return(true);
            }, (p) =>
            {
                var w = Window.GetWindow(p) as Window;
                if (w != null)
                {
                    w.Hide();
                    LoaiSanPham LoaiSPForm = new LoaiSanPham();
                    LoaiSPForm.ShowDialog();
                    w.Show();
                }
            });

            NhaCungCapCommand = new RelayCommand <UserControl>((p) => {
                return(true);
            }, (p) =>
            {
                var w = Window.GetWindow(p) as Window;
                if (w != null)
                {
                    w.Hide();
                    NhaCungCap nccForm = new NhaCungCap();
                    nccForm.ShowDialog();
                    w.Show();
                }
            });

            ThemSanPhamCommand = new RelayCommand <UserControl>((p) => {
                return(true);
            }, (p) =>
            {
                var w = Window.GetWindow(p) as Window;
                if (w != null)
                {
                    w.Hide();
                    ThemSanPham themSPForm = new ThemSanPham();
                    ThemSanPhamVM.idUpdate = "";
                    ThemSanPhamVM.isUpdate = false;

                    var sanPhamVM = themSPForm.DataContext as ThemSanPhamVM;
                    sanPhamVM.Init();
                    themSPForm.ShowDialog();
                    w.Show();
                }
            });
        }