Beispiel #1
0
        public string CreateApplication(VisualStudioFacade facade)
        {
            string res = "";

            res += " Включил вижлу " + facade.Start();
            res += " >> " + facade.Stop();
            return(res);
        }
Beispiel #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();
        }
Beispiel #3
0
 public void CreateApplication(VisualStudioFacade facade)
 {
     facade.Start();
     facade.Stop();
 }