public NuGenForm(NuGenEventHandler h) { menu = new NuGenMainPopupMenu(h, null); RegisterEventHandler(h); InitializeComponent(); InitializeDefaults(); DisableEditMenu(); statusBar.Panels.Add(normalStatus); statusBar.Panels.Add(permanentStatus); statusBar.Panels.Add(resStatus); statusBar.Panels.Add(coordsStatus); this.importButton.Click += handler.Import_Click; this.exportButton.Click += handler.Export_Click; this.openButton.Click += handler.Open_Click; this.saveButton.Click += handler.Save_Click; this.cutButton.Click += handler.Cut_Click; this.copyButton.Click += handler.Copy_Click; this.pasteAsButton.Click += handler.PasteAsNew_Click; this.pasteButton.Click += handler.Paste_Click; this.selectButton.Click += handler.Select_Click; this.axisButton.Click += handler.AxisPoint_Click; this.scaleButton.Click += handler.ScaleBar_Click; this.segmentButton.Click += handler.SegmentFill_Click; this.curvePointButton.Click += handler.CurvePoint_Click; this.pointMatchButton.Click += handler.PointMatch_Click; this.measureButton.Click += handler.MeasurePoint_Click; this.selectButton.Click += new EventHandler(toggleButton_Click); this.axisButton.Click += new EventHandler(toggleButton_Click); this.scaleButton.Click += new EventHandler(toggleButton_Click); this.segmentButton.Click += new EventHandler(toggleButton_Click); this.curvePointButton.Click += new EventHandler(toggleButton_Click); this.pointMatchButton.Click += new EventHandler(toggleButton_Click); this.measureButton.Click += new EventHandler(toggleButton_Click); Text = "NuGenTransform"; }