Пример #1
0
        public DrawCurve(int startPosX, int startPosY)
        {
            mCurve          = new CreateCurve("DragonCurve");
            mScreenInstense = new Screen(startPosX, startPosY);

            mScreenInstense.ViewName(mCurve.mName);
            mScreenInstense.ViewGene(mCurve.mGeneration);
        }
Пример #2
0
        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);
        }