public DrawCurve(int startPosX, int startPosY) { mCurve = new CreateCurve("DragonCurve"); mScreenInstense = new Screen(startPosX, startPosY); mScreenInstense.ViewName(mCurve.mName); mScreenInstense.ViewGene(mCurve.mGeneration); }
public Screen(int startposX, int startPosY) { InitializeComponent(); Invalidate(); mCurve = new CreateCurve("DragonCurve"); mViewGene = mCurve.mGeneration; mViewName = mCurve.mName; mCurPoint = new Point(startposX, startPosY); mTempPoint = mCurPoint; mStartPoint = mCurPoint; g = this.CreateGraphics(); mGeneButton.Name = "GeneButton"; mGeneButton.Parent = this; mGeneButton.Size = new Size(100, 50); mGeneButton.Text = "Evolution"; mGeneButton.Location = new Point(600, 0); mGeneButton.Click += new EventHandler(But_Clicked); }