public ShapeDrawingPane() { this._ShapeDrawer = new ShapeDrawer(); this.ResizeRedraw = true; this._ShapeDrawer.Changed += this.OnShapeDrawerChanged; this.IsInteractive = true; }
public MainForm() { Console.WriteLine(1); this.InitializeComponent(); Console.WriteLine(2); this.ShapeDrawer = this.shapeDrawingPane1.ShapeDrawer; this.EmptyRecentProjects = this.emptyToolStripMenuItem1; this.EmptyRecentShapes = this.emptyToolStripMenuItem; this.InitTab1(); this.InitTab2(); this.ReadRecents(); Console.WriteLine(3); }
private void InitTab1() { this.ShapeDrawer.Changed += this.ShapeDrawer_Changed; //this.shapeDrawingPane1.ShapeDrawer.BoardBounds = Rectangle.FromCornerSize(new PointF(), this.shapeDrawingPane1.Size.ToPointF()); //this.shapeDrawingPane1.ShapeDrawer.ResetView(); this.scalePane1.ShapeDrawer = this.ShapeDrawer; this.propertyEditor1.BaseControls.Add(this.button7); this.propertyEditor1.BaseControls.Add(this.button8); var Filter = ""; foreach (var i in ShapeFileFormatKeys) { Filter += "|" + i + "|*.txt"; } this.openFileDialog1.Filter = Filter.Substring(1); }