Example #1
0
 private static Func <bool> AddMealDelegate(Meal m)
 {
     return(delegate()
     {
         Wrapper <bool> Bool = new Wrapper <bool>(false);
         using (AddMeal addDialog = new AddMeal(GetMasterContext())
         {
             ReturnedBool = Bool, StarterMeal = m
         })
         {
             addDialog.Show();
         }
         return Bool;
     });
 }