Esempio n. 1
0
        private void btnQuayLai_Click(object sender, RoutedEventArgs e)
        {
            UserControl usc = new UI_BanHang();

            UI_ManHinhChinh.gridMain.Children.Clear();
            UI_ManHinhChinh.gridMain.Children.Add(usc);
        }
Esempio n. 2
0
        private void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            UserControl usc = null;

            GridMain.Children.Clear();

            switch (((ListViewItem)((ListView)sender).SelectedItem).Name)
            {
            case "ItemHome":
                usc = new UI_QuanTri();
                GridMain.Children.Add(usc);
                break;

            case "ItemCreate":
                usc = new UI_BanHang();
                GridMain.Children.Add(usc);
                break;

            case "ItemSuppliers":
                usc = new UI_NhaCungCap(GridMain);
                GridMain.Children.Add(usc);
                break;

            case "ItemEmployees":
                usc = new UI_NhanVien(GridMain);
                GridMain.Children.Add(usc);
                break;

            case "ItemReceipt":
                usc = new UI_PhieuChi(GridMain);
                GridMain.Children.Add(usc);
                break;

            case "ItemStockImport":
                usc = new UI_PhieuNhap(GridMain);
                GridMain.Children.Add(usc);
                break;

            case "ItemHangHoa":
                usc = new UI_HangHoa();
                GridMain.Children.Add(usc);
                break;

            case "ItemBaoHanh":
                usc = new UI_PhieuBaoHanh(GridMain);
                GridMain.Children.Add(usc);
                break;

            case "ItemDatHang":
                usc = new UI_PhieuDatHang();
                GridMain.Children.Add(usc);
                break;

            default:
                break;
            }
        }