//Calling classes public ParseVariableCommand(PictureBox pictureBoxCanvas, ParseCommand parseCommand, Circle drawCircle, Square drawSquare, Triangle drawTriangle) { this.pictureBoxCanvas = pictureBoxCanvas; this.parseTell = parseCommand; this.drawCircle = drawCircle; this.drawSquare = drawSquare; this.drawTriangle = drawTriangle; }
public FormGraphicalProgrammingLanguageApplication() { //Initialization section where other classes are called InitializeComponent(); pictureBoxCanvas = new PictureBox(Graphics.FromImage(outputBitmap)); drawSquare = new Square(Graphics.FromImage(outputBitmap)); drawCircle = new Circle(Graphics.FromImage(outputBitmap)); drawTriangle = new Triangle(Graphics.FromImage(outputBitmap)); varCommand = new ParseCommand(pictureBoxCanvas, drawCircle, drawSquare, drawTriangle); richCommand = new ParseRichCommand(pictureBoxCanvas, varCommand, pvCommand, drawCircle, drawSquare, drawTriangle); pvCommand = new ParseVariableCommand(pictureBoxCanvas, varCommand, drawCircle, drawSquare, drawTriangle); }