static void Main(string[] args)
 {
     FileViewer viewer = new FileViewer();
     Command command = new FileOpenCommand(viewer);
     InvokeCommand invoke = new InvokeCommand(command);
     invoke.ExecuteCommand();
 }
Exemple #2
0
 public FileOpenCommand(FileViewer viewer)
 {
     this.fileViewer = viewer;
 }
 public FileOpenCommand(FileViewer viewer)
 {
     this.fileViewer = viewer;
 }