public Actions(PnPMain parent) { InitializeComponent(); blocksave = true; stockbox.Text = GetReg("StockFile"); pnpbox.Text = GetReg("PnPFile"); bombox.Text = GetReg("BOMFile"); gerberzipbox.Text = GetReg("GerberZip"); topsilk.Checked = GetRegBool("topsilkvisible"); bottomsilk.Checked = GetRegBool("bottomsilkvisible"); string fmode = GetReg("flipmode"); int idx = FlipModeBox.Items.IndexOf(fmode); if (idx <= 0) { idx = 0; } FlipModeBox.SelectedIndex = idx; blocksave = false; pnp = parent; pnp.flipboard = MakeFlipMode(FlipModeBox.SelectedItem); pnp.topsilkvisible = topsilk.Checked; pnp.bottomsilkvisible = bottomsilk.Checked; }
public Actions(PnPMain parent) { InitializeComponent(); blocksave = true; stockbox.Text = GetReg("StockFile"); silkbox.Text = GetReg("SilkFile"); pnpbox.Text = GetReg("PnPFile"); bombox.Text = GetReg("BOMFile"); outlinebox.Text = GetReg("OutlineFile"); gerberzipbox.Text = GetReg("GerberZip"); topsilk.Checked = GetRegBool("topsilkvisible"); bottomsilk.Checked = GetRegBool("bottomsilkvisible"); blocksave = false; pnp = parent; pnp.topsilkvisible = topsilk.Checked; pnp.bottomsilkvisible = bottomsilk.Checked; }
public BoardDisplay(PnPMain parent, bool postdisplay) { InitializeComponent(); pnp = parent; PostDisplay = postdisplay; }
public BOMList(PnPMain main) { pnp = main; InitializeComponent(); }