public Flowchart(Flowchart prototype): base(prototype) { Suspend(); Spacing = prototype.Spacing; Orientation = prototype.Orientation; mFlowchartStencil = prototype.Stencil; LineMode = prototype.LineMode; ShapeMode = prototype.ShapeMode; Resume(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); this.flowchart1 = new Crainiate.Diagramming.Flowcharting.Flowchart(); this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.btnClose = new System.Windows.Forms.Button(); this.cmbZoom = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // flowchart1 // this.flowchart1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.flowchart1.AutoScroll = true; this.flowchart1.AutoScrollMinSize = new System.Drawing.Size(1000, 1000); this.flowchart1.DiagramSize = new System.Drawing.Size(1000, 1000); this.flowchart1.DragElement = null; this.flowchart1.GridColor = System.Drawing.Color.Silver; this.flowchart1.GridSize = new System.Drawing.Size(20, 20); this.flowchart1.Location = new System.Drawing.Point(0, 0); this.flowchart1.Name = "flowchart1"; this.flowchart1.PageLineSize = ((System.Drawing.SizeF)(resources.GetObject("flowchart1.PageLineSize"))); this.flowchart1.Size = new System.Drawing.Size(864, 721); this.flowchart1.Spacing = ((System.Drawing.SizeF)(resources.GetObject("flowchart1.Spacing"))); this.flowchart1.TabIndex = 0; this.flowchart1.WorkspaceColor = System.Drawing.SystemColors.AppWorkspace; this.flowchart1.Zoom = 100F; // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1 }); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem2 }); this.menuItem1.Text = "File"; // // menuItem2 // this.menuItem2.Index = 0; this.menuItem2.Text = "Exit"; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); // // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnClose.Location = new System.Drawing.Point(945, 683); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(66, 27); this.btnClose.TabIndex = 1; this.btnClose.Text = "Close"; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // // cmbZoom // this.cmbZoom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cmbZoom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbZoom.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.cmbZoom.Items.AddRange(new object[] { "50 %", "75 %", "100 %", "200 %" }); this.cmbZoom.Location = new System.Drawing.Point(879, 32); this.cmbZoom.Name = "cmbZoom"; this.cmbZoom.Size = new System.Drawing.Size(120, 21); this.cmbZoom.TabIndex = 5; this.cmbZoom.SelectedIndexChanged += new System.EventHandler(this.cmbZoom_SelectedIndexChanged); // // label1 // this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label1.Location = new System.Drawing.Point(879, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(72, 16); this.label1.TabIndex = 4; this.label1.Text = "Zoom"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 14); this.ClientSize = new System.Drawing.Size(1016, 721); this.Controls.Add(this.cmbZoom); this.Controls.Add(this.label1); this.Controls.Add(this.btnClose); this.Controls.Add(this.flowchart1); this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Menu = this.mainMenu1; this.Name = "Form1"; this.Text = "Flowchart Example"; this.Load += new System.EventHandler(this.Form1_Load); this.ResumeLayout(false); }