Exemplo n.º 1
0
        private static void AddQueen()
        {
            var queen = QueenView.Create();

            Context.Get.Queens.Add(queen);
            Context.Save();
            Caption.Action($"Queen Added: {queen}");
        }
Exemplo n.º 2
0
        private async static void AddHive()
        {
            var hive = await HiveView.Create();

            if (hive != null)
            {
                Context.Get.Hives.Add(hive);
                Context.Save();
                Caption.Action($"Hive Added: { hive }");
            }
            else
            {
                Caption.Action("No Hive Added");
            }
        }