Ejemplo n.º 1
0
        //private static void Blä()
        //{
        //    var nutrientsPrinter = Conzap.ObjectPrinter<Nutrients>();

        //    var fruitPrinter = Conzap.ObjectPrinter<Fruit>(MyObject);
        //        .Field(x => x)
        //        .Field(x => x)
        //        .Field(x => x.list )
        //        .Configure();

        //}

        private static void TestMenuItemAttribute()
        {
            var fruitHandler  = new HandleFruits();
            var personHandler = new HandlePersons();

            while (true)
            {
                ConzapTools.RunMenu("CHOOSE AN OPTION: ",
                                    new ConzapMenuItem("Handle persons ", () => ConzapTools.RunMenu <HandlePersons>(personHandler)),
                                    new ConzapMenuItem("Handle fruits ", () => ConzapTools.RunMenu <HandleFruits>(fruitHandler))
                                    );
            }
        }
Ejemplo n.º 2
0
 private static List <Fruit> GetFruits()
 {
     return(HandleFruits.GetFruits());
 }