示例#1
0
        private void add_Click(object sender, RoutedEventArgs e)
        {
            DrugAllergen alergen = new DrugAllergen();

            alergen.Id_Allergen = 2;
            alergen.Id_drug     = 2;

            App.DatabaseDrugAllergen.SaveItemAsync(alergen);
        }
示例#2
0
        private void Alergensend_Click(object sender, RoutedEventArgs e)
        {
            DrugAllergen alergen = new DrugAllergen();
            int          x       = 0;
            int          y       = 0;

            Int32.TryParse(IDDrog.Text, out x);
            Int32.TryParse(IDAlergen.Text, out y);
            alergen.Id_Allergen = y;
            alergen.Id_drug     = x;
            App.DatabaseDrugAllergen.SaveItemAsync(alergen);
        }