Example #1
0
        public MainForm()
        {
            InitializeComponent();

            ///signs for panel buttons
            panelButtonPI.Text             = "\u03c0";
            panelButtonMultiplication.Text = "\u00d7";
            ///
            Searcher(this);

            tracingForm            = new TracingDataForm();
            parametricFunctionFrom = new ParametricFunctionForm();


            Rectangle screenSize = Screen.PrimaryScreen.Bounds;

            this.Height = 2 * screenSize.Size.Height / 3;
            this.Width  = 2 * screenSize.Size.Width / 3;

            textBox_Function.KeyPress += TextBox_Function_KeyPress;
            pictureBox.SizeChanged    += PictureBox_SizeChanged;
            pictureBox.MouseHover     += PictureBox_MouseHover;
            pictureBox.MouseWheel     += PictureBox_MouseWheel;
            SetColorButton.Click      += SetColorButton_Click;
            SetDashStyleButton.Click  += SetDashStyleButton_Click;

            pictureBox.MouseDown += PictureBox_MouseDown;
            pictureBox.MouseUp   += PictureBox_MouseUp;
            pictureBox.MouseMove += PictureBox_MouseMove;

            DeleteFunctionsButton.Click += DeleteFunctionsButton_Click;

            traceButton.Click += TraceButton_Click;
            DeleteFunctionFromListButton.Click += DeleteFunctionFromListButton_Click;
            ChangeColorButton.Click            += ChangeColorButton_Click;
            ParametricFunctionButton.Click     += ParametricFunctionButton_Click;
            centerButton.Click += CenterButton_Click;

            solidItemButton.Click      += ChangeDashStyleButton_Click;
            dashItemButton.Click       += ChangeDashStyleButton_Click;
            dashDotItemButton.Click    += ChangeDashStyleButton_Click;
            dashDotDotItemButton.Click += ChangeDashStyleButton_Click;

            calculateAreaButton.Click     += CalculateAreaButton_Click;
            OnOffnumericLinesButton.Click += OnOffnumericLinesButton_Click;
            ChangeBackgroundButton.Click  += ChangeBackgroundButton_Click;
            OnOffCoordinateNet.Click      += OnOffCoordinateNet_Click;
            SaveButton.Click += SaveButton_Click;

            width1button.Click += Widthbutton_Click;
            width2button.Click += Widthbutton_Click;
            width3button.Click += Widthbutton_Click;
        }
Example #2
0
 private void ParametricFunctionButton_Click(object sender, EventArgs e)
 {
     parametricFunctionFrom            = new ParametricFunctionForm();
     parametricFunctionFrom.OkPressed += ParametricFunctionFrom_OkPressed;
     parametricFunctionFrom.Show();
 }