Esempio n. 1
0
        static void Main(string[] args)
        {
            TextEditor textEditor = new TextEditor();
            Compiller  compiller  = new Compiller();
            CLR        clr        = new CLR();

            VisualStudioFacade ide = new VisualStudioFacade(textEditor, compiller, clr);

            Programmer programmer = new Programmer();

            programmer.CreateApplication(ide);

            Console.Read();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            TextEditor textEditor = new TextEditor();
            Compiller  compiller  = new Compiller();
            CLR        clr        = new CLR();

            VisualStudioFacade vs = new VisualStudioFacade(textEditor, compiller, clr);

            vs.Start();
            vs.Stop();
            //So, instead of calling all the methods from appropriate classes
            //call all these from one common interface (class VisualStudioFacade in this case
            Console.ReadKey();
        }
Esempio n. 3
0
        private static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.Title           = "Facade";

            var textEditor = new TextEditor();
            var compiler   = new Compiler();
            var clr        = new CLR();

            var ide = new VisualStudioFacade(textEditor, compiler, clr);

            var programmer = new Programmer();

            programmer.CreateApplication(ide);

            Console.ReadKey();
        }
 public VisualStudioFacade(TextEditor textEditor, Compiler compiler, CLR clr)
 {
     this.textEditor = textEditor;
     this.compiler   = compiler;
     this.clr        = clr;
 }
Esempio n. 5
0
 public VisualStudioFacade(TextEditor te, Compiller c, CLR clr)
 {
     textEditor = te;
     compiller  = c;
     Clr        = clr;
 }
Esempio n. 6
0
 public VisualStudioFacade(TextEditor txEditor, Compiler compiler, CLR clr)
 {
     _textEditor = txEditor;
     _compiler   = compiler;
     _clr        = clr;
 }