コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
ファイル: BoardDisplay.cs プロジェクト: Witawat/GerberTools
 public BoardDisplay(PnPMain parent, bool postdisplay)
 {
     InitializeComponent();
     pnp         = parent;
     PostDisplay = postdisplay;
 }
コード例 #4
0
 public BOMList(PnPMain main)
 {
     pnp = main;
     InitializeComponent();
 }