Loading files
e025c4d39This file is pinned to the selected release. Download the original to open it in your design tool.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GerberCombinerBuilder
{
public partial class PanelProperties : Form
{
private GerberLibrary.GerberPanel ParentPanel;
public PanelProperties(GerberLibrary.GerberPanel ThePanel)
{
InitializeComponent();
ParentPanel = ThePanel;
WidthBox.Value = (decimal)ParentPanel.TheSet.Width;
HeightBox.Value = (decimal)ParentPanel.TheSet.Height;
MarginBox.Value = (decimal)ParentPanel.TheSet.MarginBetweenBoards;
ClipToOutlines.Checked = ParentPanel.TheSet.ClipToOutlines;
filloffsetbox.Value = (decimal)ParentPanel.TheSet.FillOffset;
smoothoffsetbox.Value= (decimal)ParentPanel.TheSet.Smoothing;
ExtraTabDrillDistance.Value = (decimal)ParentPanel.TheSet.ExtraTabDrillDistance;
FillEmpty.Checked = ParentPanel.TheSet.ConstructNegativePolygon;
noMouseBites.Checked = ParentPanel.TheSet.DoNotGenerateMouseBites;
mergebyfiletypebox.Checked = ParentPanel.TheSet.MergeFileTypes;
copyOutlineToTopSilkscreen.Checked = ParentPanel.TheSet.CopyOutlineToTopSilkscreen;
}
private void OkButton(object sender, EventArgs e)
{
ParentPanel.TheSet.Width = (double)WidthBox.Value;
ParentPanel.TheSet.Height = (double)HeightBox.Value;
ParentPanel.TheSet.MarginBetweenBoards = (double)MarginBox.Value;
ParentPanel.TheSet.ConstructNegativePolygon = FillEmpty.Checked;
ParentPanel.TheSet.ExtraTabDrillDistance = (double) ExtraTabDrillDistance.Value;
ParentPanel.TheSet.FillOffset = (double)filloffsetbox.Value;
ParentPanel.TheSet.Smoothing = (double)smoothoffsetbox.Value;
ParentPanel.TheSet.DoNotGenerateMouseBites = noMouseBites.Checked;
ParentPanel.TheSet.ClipToOutlines = ClipToOutlines.Checked;
ParentPanel.TheSet.MergeFileTypes = mergebyfiletypebox.Checked;
ParentPanel.TheSet.CopyOutlineToTopSilkscreen = copyOutlineToTopSilkscreen.Checked;
Close();
}
private void CancelButtonPress(object sender, EventArgs e)
{
// cancel
Close();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
}
private void CheckBox1_CheckedChanged_1(object sender, EventArgs e)
{
}
}
}