private void ConfigureButtonClick(object sender, EventArgs e)
        {
            PlanePropertiesForm f = new PlanePropertiesForm(scatterPlotPlane.HorizontalGridColor,
                                                            scatterPlotPlane.VerticalGridColor, scatterPlotPlane.HorizontalGrid, scatterPlotPlane.VerticalGrid,
                                                            scatterPlotPlane.HorizontalGridWidth, scatterPlotPlane.VerticalGridWidth, FillColor, scatterPlotPlane.BackColor,
                                                            LineColor, MajorTickLength, MajorTickLineWidth, MinorTickLength, MinorTickLineWidth, topAxis.Visible,
                                                            rightAxis.Visible, LineWidth, (int)NumbersFont.Size, NumbersFont.Bold, (int)LabelFont.Size, LabelFont.Bold,
                                                            scatterPlotPlane.HorizontalZeroColor, scatterPlotPlane.VerticalZeroColor, scatterPlotPlane.HorizontalZeroWidth,
                                                            scatterPlotPlane.VerticalZeroWidth, scatterPlotPlane.HorizontalZeroVisible, scatterPlotPlane.VerticalZeroVisible);

            if (Icon != null)
            {
                f.Icon = Icon;
            }
            f.ShowDialog(ParentForm);
            if (f.Ok)
            {
                scatterPlotPlane.HorizontalGrid        = f.HorizontalGrid;
                scatterPlotPlane.VerticalGrid          = f.VerticalGrid;
                scatterPlotPlane.HorizontalGridColor   = f.HorizontalGridColor;
                scatterPlotPlane.VerticalGridColor     = f.VerticalGridColor;
                scatterPlotPlane.HorizontalGridWidth   = f.HorizontalGridWidth;
                scatterPlotPlane.VerticalGridWidth     = f.VerticalGridWidth;
                scatterPlotPlane.HorizontalZeroColor   = f.HorizontalZeroColor;
                scatterPlotPlane.VerticalZeroColor     = f.VerticalZeroColor;
                scatterPlotPlane.HorizontalZeroWidth   = f.HorizontalZeroWidth;
                scatterPlotPlane.VerticalZeroWidth     = f.VerticalZeroWidth;
                scatterPlotPlane.HorizontalZeroVisible = f.HorizontalZeroVisible;
                scatterPlotPlane.VerticalZeroVisible   = f.VerticalZeroVisible;
                FillColor = f.FillColor;
                LineColor = f.LineColor;
                scatterPlotPlane.BackColor = f.BackgroundColor;
                topAxis.Visible            = f.TopAxesVisible;
                rightAxis.Visible          = f.RightAxesVisible;
                MajorTickLength            = f.MajorTickLength;
                MajorTickLineWidth         = f.MajorTickLineWidth;
                MinorTickLength            = f.MinorTickLength;
                MinorTickLineWidth         = f.MinorTickLineWidth;
                LineWidth   = f.LineWidth;
                NumbersFont = new Font("Arial", f.NumbersFontSize, f.NumbersFontBold ? FontStyle.Bold : FontStyle.Regular);
                LabelFont   = new Font("Arial Unicode MS", f.TitleFontSize, f.TitleFontBold ? FontStyle.Bold : FontStyle.Regular);
                scatterPlotPlane.InvalidateImage();
                Invalidate(true);
            }
            f.Dispose();
        }
 private void ConfigureButtonClick(object sender, EventArgs e)
 {
     PlanePropertiesForm f = new PlanePropertiesForm(scatterPlotPlane.HorizontalGridColor,
         scatterPlotPlane.VerticalGridColor, scatterPlotPlane.HorizontalGrid, scatterPlotPlane.VerticalGrid,
         scatterPlotPlane.HorizontalGridWidth, scatterPlotPlane.VerticalGridWidth, FillColor, scatterPlotPlane.BackColor,
         LineColor, MajorTickLength, MajorTickLineWidth, MinorTickLength, MinorTickLineWidth, topAxis.Visible,
         rightAxis.Visible, LineWidth, (int) NumbersFont.Size, NumbersFont.Bold, (int) LabelFont.Size, LabelFont.Bold,
         scatterPlotPlane.HorizontalZeroColor, scatterPlotPlane.VerticalZeroColor, scatterPlotPlane.HorizontalZeroWidth,
         scatterPlotPlane.VerticalZeroWidth, scatterPlotPlane.HorizontalZeroVisible, scatterPlotPlane.VerticalZeroVisible);
     if (Icon != null){
         f.Icon = Icon;
     }
     f.ShowDialog(ParentForm);
     if (f.Ok){
         scatterPlotPlane.HorizontalGrid = f.HorizontalGrid;
         scatterPlotPlane.VerticalGrid = f.VerticalGrid;
         scatterPlotPlane.HorizontalGridColor = f.HorizontalGridColor;
         scatterPlotPlane.VerticalGridColor = f.VerticalGridColor;
         scatterPlotPlane.HorizontalGridWidth = f.HorizontalGridWidth;
         scatterPlotPlane.VerticalGridWidth = f.VerticalGridWidth;
         scatterPlotPlane.HorizontalZeroColor = f.HorizontalZeroColor;
         scatterPlotPlane.VerticalZeroColor = f.VerticalZeroColor;
         scatterPlotPlane.HorizontalZeroWidth = f.HorizontalZeroWidth;
         scatterPlotPlane.VerticalZeroWidth = f.VerticalZeroWidth;
         scatterPlotPlane.HorizontalZeroVisible = f.HorizontalZeroVisible;
         scatterPlotPlane.VerticalZeroVisible = f.VerticalZeroVisible;
         FillColor = f.FillColor;
         LineColor = f.LineColor;
         scatterPlotPlane.BackColor = f.BackgroundColor;
         topAxis.Visible = f.TopAxesVisible;
         rightAxis.Visible = f.RightAxesVisible;
         MajorTickLength = f.MajorTickLength;
         MajorTickLineWidth = f.MajorTickLineWidth;
         MinorTickLength = f.MinorTickLength;
         MinorTickLineWidth = f.MinorTickLineWidth;
         LineWidth = f.LineWidth;
         NumbersFont = new Font("Arial", f.NumbersFontSize, f.NumbersFontBold ? FontStyle.Bold : FontStyle.Regular);
         LabelFont = new Font("Arial Unicode MS", f.TitleFontSize, f.TitleFontBold ? FontStyle.Bold : FontStyle.Regular);
         scatterPlotPlane.InvalidateImage();
         Invalidate(true);
     }
     f.Dispose();
 }