Exemple #1
0
        public Program()
        {
            Database          database     = new Database();
            Backend           backend      = new Backend(database);
            IntermediateLayer intermediate = new IntermediateLayer(backend);
            FrontEnd          frontEnd     = new FrontEnd(intermediate);

            frontEnd.GetHelp(HelpItem.FrontEnd);
        }
    public static void Main()
    {
        const int FRONT_END_HELP          = 1;
        const int INTERMEDIATE_LAYER_HELP = 2;
        const int GENERAL_HELP            = 3;

        Application app                     = new Application();
        IntermediateLayer intermediateLayer = new IntermediateLayer(app);
        FrontEnd frontEnd                   = new FrontEnd(intermediateLayer);

        frontEnd.getHelp(GENERAL_HELP);
    }