public void LoadFile(string filename) { LoadedFile = filename; ThePanel.LoadFile(filename); ThePanel.UpdateShape(); TV.BuildTree(this, ThePanel.TheSet); ZoomToFit(); Redraw(false); BaseName = Path.GetFileNameWithoutExtension(filename); BuildTitle(); }
internal void RemovePanelizer() { saveToolStripMenuItem.Enabled = false; saveAsToolStripMenuItem.Enabled = false; exportMergedGerbersToolStripMenuItem.Enabled = false; ActivePanelizeInstance = null; TV.BuildTree(null, null); ID.UpdateBoxes(null); }
public GerberPanelize(GerberPanelizerParent Host, Treeview tv, InstanceDialog id) { ParentFrame = Host; Gerber.ArcQualityScaleFactor = 0.1; InitializeComponent(); UpdateAutoProcessButton(); UpdateSnapBox(SnapMode.MM1); // AddGerberFolder(@"C:\Projects\Circuits\50pcs 5x5cm green 1.6mm - goaoma"); // TheSet.Tabs.Add(new BreakTab() { Radius = 5, Angle = 10, Center = new PointF(50,50) }); TV = tv; ID = id; TV.BuildTree(this, ThePanel.TheSet); DrawingScale = Math.Min(glControl1.Width, glControl1.Height) / 110.0f; ZoomToFit(); BuildTitle(); // LoadFile(@"C:\Projects\Circuits\panelsets\RackPanel-Frame\innerframetest.gerberset"); }