示例#1
0
 public ShapeDrawingPane()
 {
     this._ShapeDrawer = new ShapeDrawer();
     this.ResizeRedraw = true;
     this._ShapeDrawer.Changed += this.OnShapeDrawerChanged;
     this.IsInteractive = true;
 }
示例#2
0
        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);
        }
示例#3
0
        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);
        }