示例#1
0
 public ViewChangedEventArgs(Viewer view)
 {
     View   = view;
     Bounds = RectangleF.Empty;
     this.create();
 }
 public ViewChangedEventArgs(Viewer view)
 {
     View = view;
     Bounds =RectangleF.Empty;
     this.create();
 }
示例#3
0
        private void InitializeComponent()
        {
            ResourceManager resources = new ResourceManager(typeof (ItopVector.DrawArea.DrawArea));
            this.hScrollBar1 = new HScrollBar();
            this.label1 = new Label();
            this.vScrollBar1 = new VScrollBar();
            this.hRule = new Label();
            this.vRule = new Label();
            this.label2 = new Label();
            this.viewer = new Viewer();
            this.mouseAreaControl = new MouseArea();
            this.viewer.SuspendLayout();
            base.SuspendLayout();
            this.hScrollBar1.Anchor = AnchorStyles.Right | (AnchorStyles.Left | AnchorStyles.Bottom);
            this.hScrollBar1.Location = new Point(0, 360);
            this.hScrollBar1.Name = "hScrollBar1";
            this.hScrollBar1.Size = new Size(0x170, 0x10);
            this.hScrollBar1.TabIndex = 0;
            this.hScrollBar1.ValueChanged += new EventHandler(this.hScrollBar1_ValueChanged);
            this.label1.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
            this.label1.BackColor = SystemColors.Control;
            this.label1.Location = new Point(0x170, 360);
            this.label1.Name = "label1";
            this.label1.Size = new Size(0x10, 0x10);
            this.label1.TabIndex = 1;
            this.vScrollBar1.Anchor = AnchorStyles.Right | (AnchorStyles.Bottom | AnchorStyles.Top);
            this.vScrollBar1.Location = new Point(0x170, 0);
            this.vScrollBar1.Name = "vScrollBar1";
            this.vScrollBar1.Size = new Size(0x10, 360);
            this.vScrollBar1.TabIndex = 2;
            this.vScrollBar1.ValueChanged += new EventHandler(this.vScrollBar1_ValueChanged);
            this.hRule.Anchor = AnchorStyles.Right | (AnchorStyles.Left | AnchorStyles.Top);
            this.hRule.BackColor = Color.White;
            this.hRule.Name = "hRule";
            this.hRule.Size = new Size(0x170, 16);
            this.hRule.TabIndex = 3;
            this.hRule.Paint += new PaintEventHandler(this.hRule_Paint);
            this.hRule.MouseUp += new MouseEventHandler(this.hRule_MouseUp);
            this.hRule.MouseMove += new MouseEventHandler(this.hRule_MouseMove);
            this.vRule.Anchor = AnchorStyles.Left | (AnchorStyles.Bottom | AnchorStyles.Top);
            this.vRule.BackColor = Color.White;
            this.vRule.Name = "vRule";
            this.vRule.Size = new Size(16, 360);
            this.vRule.TabIndex = 4;
            this.vRule.Paint += new PaintEventHandler(this.vRule_Paint);
            this.vRule.MouseUp += new MouseEventHandler(this.hRule_MouseUp);
            this.vRule.MouseMove += new MouseEventHandler(this.hRule_MouseMove);
            this.label2.BackColor = Color.White;
            this.label2.Name = "label2";
            this.label2.Size = new Size(16, 16);
            this.label2.TabIndex = 5;
            this.label2.Paint += new PaintEventHandler(this.label2_Paint);
            this.viewer.AllowDrop = true;
            this.viewer.Anchor = AnchorStyles.Right | (AnchorStyles.Left | (AnchorStyles.Bottom | AnchorStyles.Top));
            this.viewer.BackColor = Color.Transparent;

            this.viewer.Controls.AddRange(new Control[1] {this.mouseAreaControl});
            this.viewer.Name = "viewer";
            this.viewer.Size = new Size(0x170, 360);
            this.viewer.SVGDocument = null;
            this.viewer.TabIndex = 6;
            this.viewer.Text = "viewer1";
            this.mouseAreaControl.AllowDrop = true;
            this.mouseAreaControl.BackColor = Color.Transparent;
            this.mouseAreaControl.CenterPoint = (PointF) resources.GetObject("mouseAreaControl.CenterPoint");
            this.mouseAreaControl.CurrentOperation = ToolOperation.None;
            this.mouseAreaControl.DefaultCursor = Cursors.Default;
            this.mouseAreaControl.Dock = DockStyle.Fill;
            this.mouseAreaControl.Name = "mouseAreaControl";
            //			this.mouseAreaControl.PicturePanel = null;
            this.mouseAreaControl.ShiftDown = false;
            this.mouseAreaControl.Size = new Size(0x170, 360);
            this.mouseAreaControl.TabIndex = 0;
            //			this.BackColor = Color.LightGray;
            this.BackColor = Color.FromArgb(144,153,174);
            Control[] controlArray2 = new Control[7] {this.vScrollBar1, this.label1, this.hScrollBar1, this.label2, this.vRule, this.hRule, this.viewer};
            base.Controls.AddRange(controlArray2);
            base.Name = "DrawArea";
            base.Size = new Size(0x180, 0x178);
            this.viewer.ResumeLayout(false);
            base.ResumeLayout(false);
        }