Beispiel #1
0
        //Quan ly don vi thuoc
        private void btnAddUnit_Click(object sender, RoutedEventArgs e)
        {
            AddUnitMedicine addUnit = new AddUnitMedicine(null);

            addUnit.ShowDialog();
            List <UnitMedicine> listUnit = DataManager.getInstance().getAllUnit();

            unitDataGrid.DataContext = listUnit;
        }
Beispiel #2
0
        private void btnEditUnit_Click(object sender, RoutedEventArgs e)
        {
            UnitMedicine    unit    = unitDataGrid.SelectedItem as UnitMedicine;
            AddUnitMedicine addUnit = new AddUnitMedicine(unit);

            addUnit.ShowDialog();
            List <UnitMedicine> listUnit = DataManager.getInstance().getAllUnit();

            unitDataGrid.DataContext = listUnit;
        }