private void FileOpenMenu_Click(object sender, EventArgs e) { var filename = GetFilename(); if (filename == null) { return; } var canvas = new ImageCanvas(XYImage, XZImage, YZImage); var app = new DrawingApp(fileParser, projector, canvas); app.Load(filename); }
public void SetUp() { canvas = new FakeCanvas(); sut = new DrawingApp(new FileParser(new WinFileSystem(), new LineParser()), new Projector(), canvas); }