Beispiel #1
0
        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);
        }
Beispiel #2
0
        public void SetUp()
        {
            canvas = new FakeCanvas();

            sut = new DrawingApp(new FileParser(new WinFileSystem(), new LineParser()), new Projector(), canvas);
        }