Exemplo n.º 1
0
 public Currency(Blacksmith_whetstone blacksmith_whetstone, Armourer_scrap armourer_scrap, Glassblower_bauble glassblower_bauble, Gemcutter_prism gemcutter_prism, Cartographer_chisel cartographer_chisel, Transmutation transmutation, Alteration alteration, Annulment annulment, Chance chance, Augment augment, Exalted exalted, Mirror mirror, Regal regal, Alchemy alchemy, Chaos chaos, Blessed blessed, Divine divine, Jeweller jeweller, Fusing fusing, Chromatic chromatic, Scouring scouring, Regret regret, Vaal vaal, Silver_coin silver_coin, Perandus_coin perandus_coin, Apprentice_sextant apprentice_sextant, Journeyman_sextant journeyman_sextant, Master_sextant master_sextant)
 {
     this.blacksmith_whetstone = blacksmith_whetstone;
     this.armourer_scrap       = armourer_scrap;
     this.glassblower_bauble   = glassblower_bauble;
     this.gemcutter_prism      = gemcutter_prism;
     this.cartographer_chisel  = cartographer_chisel;
     this.transmutation        = transmutation;
     this.alteration           = alteration;
     this.annulment            = annulment;
     this.chance             = chance;
     this.augment            = augment;
     this.exalted            = exalted;
     this.mirror             = mirror;
     this.regal              = regal;
     this.alchemy            = alchemy;
     this.chaos              = chaos;
     this.blessed            = blessed;
     this.divine             = divine;
     this.jeweller           = jeweller;
     this.fusing             = fusing;
     this.chromatic          = chromatic;
     this.scouring           = scouring;
     this.regret             = regret;
     this.vaal               = vaal;
     this.silver_coin        = silver_coin;
     this.perandus_coin      = perandus_coin;
     this.apprentice_sextant = apprentice_sextant;
     this.journeyman_sextant = journeyman_sextant;
     this.master_sextant     = master_sextant;
 }
Exemplo n.º 2
0
        async void hinzufuegen(Object sender, EventArgs e)
        {
            Regal regal = new Regal();

            regal.reg_id          = e_regal_id.Text;
            regal.reg_bezeichnung = e_regal_bezeichnung.Text;

            if (regal != null && regal.reg_id != null && regal.reg_bezeichnung != null)
            {
                await App.produktManager.SaveTaskAsync(regal, isNewRegal);
                await DisplayAlert("Erfolgreich", "Regal wurde geaddet.", "Okay");

                await Navigation.PushModalAsync(new HomeScreen());
            }
            else
            {
                await DisplayAlert("Fehler!", "Regal konnte nicht geaddet werden.", "Okay");
            }
        }
Exemplo n.º 3
0
 public Task DeleteTaskAsync(Object ob)
 {
     if (ob is Produkt)
     {
         Produkt pro = new Produkt();
         pro = (Produkt)ob;
         return(restService.DeleteProduktAsync(pro.pro_id));
     }
     if (ob is Kategorie)
     {
         Kategorie kat = new Kategorie();
         kat = (Kategorie)ob;
         return(restService.DeleteKategorieAsync(kat.kat_id));
     }
     if (ob is Hersteller)
     {
         Hersteller her = new Hersteller();
         her = (Hersteller)ob;
         return(restService.DeleteHerstellerAsync(her.her_id));
     }
     if (ob is Regal)
     {
         Regal regal = new Regal();
         regal = (Regal)ob;
         return(restService.DeleteRegalAsync(regal.reg_id));
     }
     if (ob is Lagerbestand)
     {
         Lagerbestand lager = new Lagerbestand();
         lager = (Lagerbestand)ob;
         return(restService.DeleteLagerbestandAsync(lager.lag_id));
     }
     if (ob is Verkauf)
     {
         Verkauf verkauf = new Verkauf();
         verkauf = (Verkauf)ob;
         return(restService.DeleteVerkaufAsync(verkauf.ver_id));
     }
     return(null);
     //return restService.DeleteProduktAsync(produkt.pro_id);
 }
Exemplo n.º 4
0
        public async Task DeleteRegalAsync(string id)
        {
            var   uri   = new Uri(string.Format(Constants.RegalDelete, string.Empty));
            Regal regal = new Regal();

            regal.reg_id = id;
            try
            {
                var json     = JsonConvert.SerializeObject(regal);
                var content  = new StringContent(json, Encoding.UTF8, "application/json");
                var response = await client.PostAsync(uri, content);

                if (response.IsSuccessStatusCode)
                {
                    Debug.WriteLine(@"				Regal successfully deleted.");
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine(@"				ERROR {0}", ex.Message);
            }
        }
Exemplo n.º 5
0
    public Regal erzeugeRegale()
    {
        Regal neuesRegal = null;

        return(neuesRegal);
    }