Exemplo n.º 1
0
 static void Main(string[] args)
 {
     FileViewer viewer = new FileViewer();
     Command command = new FileOpenCommand(viewer);
     InvokeCommand invoke = new InvokeCommand(command);
     invoke.ExecuteCommand();
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            FileViewer    viewer  = new FileViewer();
            Command       command = new FileOpenCommand(viewer);
            InvokeCommand invoke  = new InvokeCommand(command);

            invoke.ExecuteCommand();
        }