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