Exemplo n.º 1
0
        //Quan ly thuoc
        private void btnAddMedicine_Click(object sender, RoutedEventArgs e)
        {
            AddMedicine addMedicine = new AddMedicine(null);

            addMedicine.ShowDialog();
            List <FullMedicine> listMedicine = DataManager.getInstance().getAllMedicine();

            medicineDataGrid.DataContext = listMedicine;
        }
Exemplo n.º 2
0
        private void btnEditMedicine_Click(object sender, RoutedEventArgs e)
        {
            FullMedicine medicine    = medicineDataGrid.SelectedItem as FullMedicine;
            AddMedicine  addMedicine = new AddMedicine(medicine);

            addMedicine.ShowDialog();
            List <FullMedicine> listMedicine = DataManager.getInstance().getAllMedicine();

            medicineDataGrid.DataContext = listMedicine;
        }