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
 public FileOpenCommand(FileViewer viewer)
 {
     this.fileViewer = viewer;
 }
Exemplo n.º 3
0
 public FileOpenCommand(FileViewer viewer)
 {
     this.fileViewer = viewer;
 }