Example #1
0
        private void scale_ValueChanged(object sender, EventArgs e)
        {
            Draft   = new Bitmap(sheet.Width, sheet.Height);
            builder = new Builder(Draft, pixelcoeff * Convert.ToSingle(scale.Value));
            builder.Clear();
            builder.BuildNet();
            builder.BuildAxes();
            builder.BuildSection();
            builder.BuildCoordinates();
            Image = Draft;

            if (Functions.Count != 0)
            {
                foreach (Function function in Functions)
                {
                    Pen pen = new Pen(function.color, 2);
                    pen.DashStyle = function.LineStyle;
                    builder.DrawFunction(function);
                }
            }
            else
            {
                ;
            }
        }
Example #2
0
        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            Functions.Clear();
            RPN_Box.ResetText();
            ChangeButton.Enabled = false;
            FunctionList.Items.Clear();

            builder = new Builder(Draft, pixelcoeff * Convert.ToSingle(scale.Value));
            builder.Clear();
            builder.BuildNet();
            builder.BuildAxes();
            builder.BuildSection();
            builder.BuildCoordinates();
        }
Example #3
0
        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            Functions.Clear();
            RPN_Box.ResetText();
            ChangeButton.Enabled = false;
            FunctionList.Items.Clear();

            builder = new Builder(Draft, pixelcoeff * Convert.ToSingle(scale.Value));
            builder.Clear();
            builder.BuildNet();
            builder.BuildAxes();
            builder.BuildSection();
            builder.BuildCoordinates();
        }
Example #4
0
        private void scale_ValueChanged(object sender, EventArgs e)
        {
            Draft = new Bitmap(sheet.Width, sheet.Height);
            builder = new Builder(Draft, pixelcoeff * Convert.ToSingle(scale.Value));
            builder.Clear();
            builder.BuildNet();
            builder.BuildAxes();
            builder.BuildSection();
            builder.BuildCoordinates();
            Image = Draft;

            if (Functions.Count != 0)
            {
                foreach (Function function in Functions)
                {
                    Pen pen = new Pen(function.color, 2);
                    pen.DashStyle = function.LineStyle;
                    builder.DrawFunction(function);
                }
            }
            else
            {
                ;
            }
        }