Пример #1
0
 /// <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(frmDiagram));
     this.model1 = new Crainiate.Diagramming.Model();
     this.ruler1 = new Crainiate.Diagramming.Editing.Ruler();
     this.ruler2 = new Crainiate.Diagramming.Editing.Ruler();
     this.SuspendLayout();
     //
     // model1
     //
     this.model1.AllowDrop         = true;
     this.model1.AutoScroll        = true;
     this.model1.AutoScrollMinSize = new System.Drawing.Size(785, 604);
     this.model1.DiagramSize       = new System.Drawing.Size(745, 564);
     this.model1.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.model1.DragElement    = null;
     this.model1.GridColor      = System.Drawing.Color.Silver;
     this.model1.GridSize       = new System.Drawing.Size(20, 20);
     this.model1.Location       = new System.Drawing.Point(20, 18);
     this.model1.Name           = "model1";
     this.model1.Paged          = true;
     this.model1.PageLineSize   = ((System.Drawing.SizeF)(resources.GetObject("model1.PageLineSize")));
     this.model1.Size           = new System.Drawing.Size(780, 582);
     this.model1.TabIndex       = 0;
     this.model1.WorkspaceColor = System.Drawing.SystemColors.AppWorkspace;
     this.model1.Zoom           = 100F;
     //
     // ruler1
     //
     this.ruler1.BorderStyle   = Editing.RulerBorderStyle.Edge;
     this.ruler1.Dock          = System.Windows.Forms.DockStyle.Top;
     this.ruler1.GradientColor = System.Drawing.SystemColors.Control;
     this.ruler1.Location      = new System.Drawing.Point(0, 0);
     this.ruler1.Major         = 100F;
     this.ruler1.Mid           = 50F;
     this.ruler1.Minor         = 10F;
     this.ruler1.Name          = "ruler1";
     this.ruler1.Padding       = 20F;
     this.ruler1.Size          = new System.Drawing.Size(800, 18);
     this.ruler1.Start         = 0F;
     this.ruler1.TabIndex      = 1;
     this.ruler1.Text          = "ruler1";
     //
     // ruler2
     //
     this.ruler2.BorderStyle   = Editing.RulerBorderStyle.Edge;
     this.ruler2.Dock          = System.Windows.Forms.DockStyle.Left;
     this.ruler2.GradientColor = System.Drawing.SystemColors.Control;
     this.ruler2.Location      = new System.Drawing.Point(0, 18);
     this.ruler2.Major         = 100F;
     this.ruler2.Mid           = 50F;
     this.ruler2.Minor         = 10F;
     this.ruler2.Name          = "ruler2";
     this.ruler2.Orientation   = Editing.RulerOrientation.Left;
     this.ruler2.Size          = new System.Drawing.Size(20, 582);
     this.ruler2.Start         = 0F;
     this.ruler2.TabIndex      = 2;
     this.ruler2.Text          = "ruler2";
     //
     // frmDiagram
     //
     this.AllowDrop         = true;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(800, 600);
     this.ControlBox        = false;
     this.Controls.Add(this.model1);
     this.Controls.Add(this.ruler2);
     this.Controls.Add(this.ruler1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "frmDiagram";
     this.ShowInTaskbar   = false;
     this.Load           += new System.EventHandler(this.frmDiagram_Load);
     this.ResumeLayout(false);
 }
Пример #2
0
 /// <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.mainMenu1 = new System.Windows.Forms.MainMenu();
     this.menuItem1 = new System.Windows.Forms.MenuItem();
     this.menuItem2 = new System.Windows.Forms.MenuItem();
     this.label1    = new System.Windows.Forms.Label();
     this.btnClose  = new System.Windows.Forms.Button();
     this.model1    = new Crainiate.Diagramming.Model();
     this.btnStart  = new System.Windows.Forms.Button();
     this.btnPause  = new System.Windows.Forms.Button();
     this.btnStop   = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // 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);
     //
     // 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(652, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(129, 16);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Animation Controls";
     //
     // 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(712, 524);
     this.btnClose.Name     = "btnClose";
     this.btnClose.Size     = new System.Drawing.Size(72, 24);
     this.btnClose.TabIndex = 4;
     this.btnClose.Text     = "Close";
     this.btnClose.Click   += new System.EventHandler(this.btnClose_Click);
     //
     // model1
     //
     this.model1.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.model1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.model1.BackColor         = System.Drawing.SystemColors.Window;
     this.model1.DiagramSize       = new System.Drawing.Size(630, 655);
     this.model1.DragElement       = null;
     this.model1.DragSelect        = false;
     this.model1.DrawSelections    = false;
     this.model1.GridColor         = System.Drawing.Color.Silver;
     this.model1.GridSize          = new System.Drawing.Size(20, 20);
     this.model1.Location          = new System.Drawing.Point(0, 0);
     this.model1.Name           = "model1";
     this.model1.PageLineSize   = ((System.Drawing.SizeF)(resources.GetObject("model1.PageLineSize")));
     this.model1.Size           = new System.Drawing.Size(620, 553);
     this.model1.TabIndex       = 5;
     this.model1.WorkspaceColor = System.Drawing.SystemColors.AppWorkspace;
     this.model1.Zoom           = 100F;
     //
     // btnStart
     //
     this.btnStart.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnStart.Enabled  = false;
     this.btnStart.Location = new System.Drawing.Point(711, 43);
     this.btnStart.Name     = "btnStart";
     this.btnStart.Size     = new System.Drawing.Size(72, 24);
     this.btnStart.TabIndex = 6;
     this.btnStart.Text     = "Start";
     this.btnStart.Click   += new System.EventHandler(this.btnStart_Click);
     //
     // btnPause
     //
     this.btnPause.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnPause.Location = new System.Drawing.Point(711, 105);
     this.btnPause.Name     = "btnPause";
     this.btnPause.Size     = new System.Drawing.Size(72, 24);
     this.btnPause.TabIndex = 7;
     this.btnPause.Text     = "Pause";
     this.btnPause.Click   += new System.EventHandler(this.btnPause_Click);
     //
     // btnStop
     //
     this.btnStop.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnStop.Location = new System.Drawing.Point(711, 74);
     this.btnStop.Name     = "btnStop";
     this.btnStop.Size     = new System.Drawing.Size(72, 24);
     this.btnStop.TabIndex = 8;
     this.btnStop.Text     = "Stop";
     this.btnStop.Click   += new System.EventHandler(this.btnStop_Click);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize        = new System.Drawing.Size(792, 553);
     this.Controls.Add(this.btnStop);
     this.Controls.Add(this.btnPause);
     this.Controls.Add(this.btnStart);
     this.Controls.Add(this.model1);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.label1);
     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  = "Sales Process Diagram";
     this.Load += new System.EventHandler(this.Form1_Load);
     this.ResumeLayout(false);
 }
Пример #3
0
 /// <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.mainMenu1 = new System.Windows.Forms.MainMenu();
     this.menuItem1 = new System.Windows.Forms.MenuItem();
     this.menuItem2 = new System.Windows.Forms.MenuItem();
     this.label1    = new System.Windows.Forms.Label();
     this.cmbZoom   = new System.Windows.Forms.ComboBox();
     this.btnClose  = new System.Windows.Forms.Button();
     this.model1    = new Crainiate.Diagramming.Model();
     this.SuspendLayout();
     //
     // 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);
     //
     // 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(880, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(72, 16);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Zoom";
     //
     // 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.Items.AddRange(new object[] {
         "50 %",
         "75 %",
         "100 %",
         "200 %"
     });
     this.cmbZoom.Location              = new System.Drawing.Point(880, 32);
     this.cmbZoom.Name                  = "cmbZoom";
     this.cmbZoom.Size                  = new System.Drawing.Size(120, 21);
     this.cmbZoom.TabIndex              = 3;
     this.cmbZoom.SelectedIndexChanged += new System.EventHandler(this.cmbZoom_SelectedIndexChanged);
     //
     // 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(936, 692);
     this.btnClose.Name     = "btnClose";
     this.btnClose.Size     = new System.Drawing.Size(72, 24);
     this.btnClose.TabIndex = 4;
     this.btnClose.Text     = "Close";
     this.btnClose.Click   += new System.EventHandler(this.btnClose_Click);
     //
     // model1
     //
     this.model1.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.model1.AutoScroll        = true;
     this.model1.AutoScrollMinSize = new System.Drawing.Size(1000, 1000);
     this.model1.DiagramSize       = new System.Drawing.Size(1000, 1000);
     this.model1.DragElement       = null;
     this.model1.GridColor         = System.Drawing.Color.Silver;
     this.model1.GridSize          = new System.Drawing.Size(20, 20);
     this.model1.Location          = new System.Drawing.Point(0, 0);
     this.model1.Name           = "model1";
     this.model1.PageLineSize   = ((System.Drawing.SizeF)(resources.GetObject("model1.PageLineSize")));
     this.model1.Size           = new System.Drawing.Size(854, 721);
     this.model1.TabIndex       = 5;
     this.model1.WorkspaceColor = System.Drawing.SystemColors.AppWorkspace;
     this.model1.Zoom           = 100F;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.ClientSize        = new System.Drawing.Size(1016, 721);
     this.Controls.Add(this.model1);
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.cmbZoom);
     this.Controls.Add(this.label1);
     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  = "Class Diagram";
     this.Load += new System.EventHandler(this.Form1_Load);
     this.ResumeLayout(false);
 }