Beispiel #1
0
 public void LoadDtoFly()
 {
     foreach (var fly in _dtoFlySingleton.FlyListe)
     {
         Fly.Add(fly);
     }
 }
Beispiel #2
0
 public async void OpretFlyAsync()
 {
     try
     {
         CheckException(FlyType, FlyProducent);
         Fly creatingfly = new Fly(FlyProducent, FlyType);
         _dtoFlySingleton.PostFly(creatingfly);
         Fly.Add(creatingfly);
         _dtoFlySingleton.LoadFly();
     }
     catch (ArgumentException ex)
     {
         await new MessageDialog(ex.Message).ShowAsync();
     }
 }