Inheritance: System.Windows.Forms.Control
示例#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(SvgViewerForm));
     this.btnGo               = new System.Windows.Forms.Button();
     this.openFileDialog1     = new System.Windows.Forms.OpenFileDialog();
     this.toolBar1            = new System.Windows.Forms.ToolBar();
     this.statusBar           = new System.Windows.Forms.StatusBar();
     this.mainMenu1           = new System.Windows.Forms.MainMenu();
     this.miFile              = new System.Windows.Forms.MenuItem();
     this.miFileOpenLocal     = new System.Windows.Forms.MenuItem();
     this.miFileSeparator1    = new System.Windows.Forms.MenuItem();
     this.miFileExit          = new System.Windows.Forms.MenuItem();
     this.miEdit              = new System.Windows.Forms.MenuItem();
     this.miEditCopy          = new System.Windows.Forms.MenuItem();
     this.miTest              = new System.Windows.Forms.MenuItem();
     this.miTestShowRefImage  = new System.Windows.Forms.MenuItem();
     this.miTestSeparator1    = new System.Windows.Forms.MenuItem();
     this.miTestSuite         = new System.Windows.Forms.MenuItem();
     this.miOptions           = new System.Windows.Forms.MenuItem();
     this.miOptionsClearCache = new System.Windows.Forms.MenuItem();
     this.miHelp              = new System.Windows.Forms.MenuItem();
     this.miHelpAbout         = new System.Windows.Forms.MenuItem();
     this.svgUrlCombo         = new System.Windows.Forms.ComboBox();
     this.panel1              = new System.Windows.Forms.Panel();
     this.pbRefImage          = new System.Windows.Forms.PictureBox();
     this.svgPictureBox       = new SvgComponents.SvgPictureBox();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // btnGo
     //
     this.btnGo.Location = new System.Drawing.Point(352, 8);
     this.btnGo.Name     = "btnGo";
     this.btnGo.Size     = new System.Drawing.Size(48, 24);
     this.btnGo.TabIndex = 0;
     this.btnGo.Text     = "&Go";
     this.btnGo.Click   += new System.EventHandler(this.btnGo_Click);
     //
     // openFileDialog1
     //
     this.openFileDialog1.DefaultExt = "svg";
     this.openFileDialog1.Filter     = "SVG Files|*.svg;*.svgz|All Files|*.*";
     this.openFileDialog1.Title      = "Select an SVG File";
     this.openFileDialog1.FileOk    += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk);
     //
     // toolBar1
     //
     this.toolBar1.BorderStyle    = System.Windows.Forms.BorderStyle.FixedSingle;
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.Location       = new System.Drawing.Point(0, 0);
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(720, 43);
     this.toolBar1.TabIndex       = 22;
     //
     // statusBar
     //
     this.statusBar.Location = new System.Drawing.Point(0, 419);
     this.statusBar.Name     = "statusBar";
     this.statusBar.Size     = new System.Drawing.Size(720, 22);
     this.statusBar.TabIndex = 23;
     this.statusBar.Text     = "Welcome";
     //
     // mainMenu1
     //
     this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miFile,
         this.miEdit,
         this.miTest,
         this.miOptions,
         this.miHelp
     });
     //
     // miFile
     //
     this.miFile.Index = 0;
     this.miFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miFileOpenLocal,
         this.miFileSeparator1,
         this.miFileExit
     });
     this.miFile.Text = "File";
     //
     // miFileOpenLocal
     //
     this.miFileOpenLocal.Index  = 0;
     this.miFileOpenLocal.Text   = "Open local...";
     this.miFileOpenLocal.Click += new System.EventHandler(this.miOpenLocal_Click);
     //
     // miFileSeparator1
     //
     this.miFileSeparator1.Index = 1;
     this.miFileSeparator1.Text  = "-";
     //
     // miFileExit
     //
     this.miFileExit.Index  = 2;
     this.miFileExit.Text   = "Exit";
     this.miFileExit.Click += new System.EventHandler(this.miExit_Click);
     //
     // miEdit
     //
     this.miEdit.Index = 1;
     this.miEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miEditCopy
     });
     this.miEdit.Text    = "Edit";
     this.miEdit.Visible = false;
     //
     // miEditCopy
     //
     this.miEditCopy.Index  = 0;
     this.miEditCopy.Text   = "Copy";
     this.miEditCopy.Click += new System.EventHandler(this.miCopy_Click);
     //
     // miTest
     //
     this.miTest.Index = 2;
     this.miTest.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miTestShowRefImage,
         this.miTestSeparator1,
         this.miTestSuite
     });
     this.miTest.Text = "Test";
     //
     // miTestShowRefImage
     //
     this.miTestShowRefImage.Checked = true;
     this.miTestShowRefImage.Index   = 0;
     this.miTestShowRefImage.Text    = "Show reference image";
     this.miTestShowRefImage.Click  += new System.EventHandler(this.miShowRefImage_Click);
     //
     // miTestSeparator1
     //
     this.miTestSeparator1.Index = 1;
     this.miTestSeparator1.Text  = "-";
     //
     // miTestSuite
     //
     this.miTestSuite.Index = 2;
     this.miTestSuite.Text  = "W3C SVG Test suite";
     //
     // miOptions
     //
     this.miOptions.Index = 3;
     this.miOptions.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miOptionsClearCache
     });
     this.miOptions.Text = "Options";
     //
     // miOptionsClearCache
     //
     this.miOptionsClearCache.Index  = 0;
     this.miOptionsClearCache.Text   = "Clear cache";
     this.miOptionsClearCache.Click += new System.EventHandler(this.miClearCache_Click);
     //
     // miHelp
     //
     this.miHelp.Index = 4;
     this.miHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.miHelpAbout
     });
     this.miHelp.Text = "Help";
     //
     // miHelpAbout
     //
     this.miHelpAbout.Index  = 0;
     this.miHelpAbout.Text   = "About...";
     this.miHelpAbout.Click += new System.EventHandler(this.miAbout_Click);
     //
     // svgUrlCombo
     //
     this.svgUrlCombo.ItemHeight = 13;
     this.svgUrlCombo.Items.AddRange(new object[] {
         "http://www.w3.org/Graphics/SVG/Test/20011026/rendering-orderGr-BE-01.svg",
         "http://www.croczilla.com/svg/butterfly.xml",
         "http://www.croczilla.com/svg/tiger.xml",
         "http://www.croczilla.com/svg/skew01.xml",
         "http://www.protocol7.com/svg.net/people.svg"
     });
     this.svgUrlCombo.Location = new System.Drawing.Point(8, 8);
     this.svgUrlCombo.Name     = "svgUrlCombo";
     this.svgUrlCombo.Size     = new System.Drawing.Size(336, 21);
     this.svgUrlCombo.TabIndex = 5;
     //
     // panel1
     //
     this.panel1.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.panel1.AutoScroll  = true;
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.panel1.Controls.Add(this.pbRefImage);
     this.panel1.Controls.Add(this.svgPictureBox);
     this.panel1.Location = new System.Drawing.Point(0, 43);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(720, 373);
     this.panel1.TabIndex = 24;
     //
     // pbRefImage
     //
     this.pbRefImage.Location = new System.Drawing.Point(8, 8);
     this.pbRefImage.Name     = "pbRefImage";
     this.pbRefImage.Size     = new System.Drawing.Size(480, 360);
     this.pbRefImage.TabIndex = 26;
     this.pbRefImage.TabStop  = false;
     this.pbRefImage.Visible  = false;
     //
     // svgPictureBox
     //
     this.svgPictureBox.Location = new System.Drawing.Point(0, 0);
     this.svgPictureBox.Name     = "svgPictureBox";
     this.svgPictureBox.Size     = new System.Drawing.Size(718, 371);
     this.svgPictureBox.AutoSize = true;
     this.svgPictureBox.TabIndex = 25;
     //
     // SvgViewerForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(720, 441);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.svgUrlCombo);
     this.Controls.Add(this.statusBar);
     this.Controls.Add(this.btnGo);
     this.Controls.Add(this.toolBar1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Menu          = this.mainMenu1;
     this.Name          = "SvgViewerForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = ".NET SVG Viewer";
     this.Load         += new System.EventHandler(this.SvgViewerForm_Load);
     this.panel1.ResumeLayout(false);
     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(SvgViewerForm));
       this.btnGo = new System.Windows.Forms.Button();
       this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
       this.toolBar1 = new System.Windows.Forms.ToolBar();
       this.statusBar = new System.Windows.Forms.StatusBar();
       this.mainMenu1 = new System.Windows.Forms.MainMenu();
       this.miFile = new System.Windows.Forms.MenuItem();
       this.miFileOpenLocal = new System.Windows.Forms.MenuItem();
       this.miFileSeparator1 = new System.Windows.Forms.MenuItem();
       this.miFileExit = new System.Windows.Forms.MenuItem();
       this.miEdit = new System.Windows.Forms.MenuItem();
       this.miEditCopy = new System.Windows.Forms.MenuItem();
       this.miTest = new System.Windows.Forms.MenuItem();
       this.miTestShowRefImage = new System.Windows.Forms.MenuItem();
       this.miTestSeparator1 = new System.Windows.Forms.MenuItem();
       this.miTestSuite = new System.Windows.Forms.MenuItem();
       this.miOptions = new System.Windows.Forms.MenuItem();
       this.miOptionsClearCache = new System.Windows.Forms.MenuItem();
       this.miHelp = new System.Windows.Forms.MenuItem();
       this.miHelpAbout = new System.Windows.Forms.MenuItem();
       this.svgUrlCombo = new System.Windows.Forms.ComboBox();
       this.panel1 = new System.Windows.Forms.Panel();
       this.pbRefImage = new System.Windows.Forms.PictureBox();
       this.svgPictureBox = new SvgComponents.SvgPictureBox();
       this.panel1.SuspendLayout();
       this.SuspendLayout();
       //
       // btnGo
       //
       this.btnGo.Location = new System.Drawing.Point(352, 8);
       this.btnGo.Name = "btnGo";
       this.btnGo.Size = new System.Drawing.Size(48, 24);
       this.btnGo.TabIndex = 0;
       this.btnGo.Text = "&Go";
       this.btnGo.Click += new System.EventHandler(this.btnGo_Click);
       //
       // openFileDialog1
       //
       this.openFileDialog1.DefaultExt = "svg";
       this.openFileDialog1.Filter = "SVG Files|*.svg;*.svgz|All Files|*.*";
       this.openFileDialog1.Title = "Select an SVG File";
       this.openFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk);
       //
       // toolBar1
       //
       this.toolBar1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
       this.toolBar1.DropDownArrows = true;
       this.toolBar1.Location = new System.Drawing.Point(0, 0);
       this.toolBar1.Name = "toolBar1";
       this.toolBar1.ShowToolTips = true;
       this.toolBar1.Size = new System.Drawing.Size(720, 43);
       this.toolBar1.TabIndex = 22;
       //
       // statusBar
       //
       this.statusBar.Location = new System.Drawing.Point(0, 419);
       this.statusBar.Name = "statusBar";
       this.statusBar.Size = new System.Drawing.Size(720, 22);
       this.statusBar.TabIndex = 23;
       this.statusBar.Text = "Welcome";
       //
       // mainMenu1
       //
       this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                       this.miFile,
                                                                       this.miEdit,
                                                                       this.miTest,
                                                                       this.miOptions,
                                                                       this.miHelp});
       //
       // miFile
       //
       this.miFile.Index = 0;
       this.miFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                    this.miFileOpenLocal,
                                                                    this.miFileSeparator1,
                                                                    this.miFileExit});
       this.miFile.Text = "File";
       //
       // miFileOpenLocal
       //
       this.miFileOpenLocal.Index = 0;
       this.miFileOpenLocal.Text = "Open local...";
       this.miFileOpenLocal.Click += new System.EventHandler(this.miOpenLocal_Click);
       //
       // miFileSeparator1
       //
       this.miFileSeparator1.Index = 1;
       this.miFileSeparator1.Text = "-";
       //
       // miFileExit
       //
       this.miFileExit.Index = 2;
       this.miFileExit.Text = "Exit";
       this.miFileExit.Click += new System.EventHandler(this.miExit_Click);
       //
       // miEdit
       //
       this.miEdit.Index = 1;
       this.miEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                    this.miEditCopy});
       this.miEdit.Text = "Edit";
       this.miEdit.Visible = false;
       //
       // miEditCopy
       //
       this.miEditCopy.Index = 0;
       this.miEditCopy.Text = "Copy";
       this.miEditCopy.Click += new System.EventHandler(this.miCopy_Click);
       //
       // miTest
       //
       this.miTest.Index = 2;
       this.miTest.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                    this.miTestShowRefImage,
                                                                    this.miTestSeparator1,
                                                                    this.miTestSuite});
       this.miTest.Text = "Test";
       //
       // miTestShowRefImage
       //
       this.miTestShowRefImage.Checked = true;
       this.miTestShowRefImage.Index = 0;
       this.miTestShowRefImage.Text = "Show reference image";
       this.miTestShowRefImage.Click += new System.EventHandler(this.miShowRefImage_Click);
       //
       // miTestSeparator1
       //
       this.miTestSeparator1.Index = 1;
       this.miTestSeparator1.Text = "-";
       //
       // miTestSuite
       //
       this.miTestSuite.Index = 2;
       this.miTestSuite.Text = "W3C SVG Test suite";
       //
       // miOptions
       //
       this.miOptions.Index = 3;
       this.miOptions.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                       this.miOptionsClearCache});
       this.miOptions.Text = "Options";
       //
       // miOptionsClearCache
       //
       this.miOptionsClearCache.Index = 0;
       this.miOptionsClearCache.Text = "Clear cache";
       this.miOptionsClearCache.Click += new System.EventHandler(this.miClearCache_Click);
       //
       // miHelp
       //
       this.miHelp.Index = 4;
       this.miHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                    this.miHelpAbout});
       this.miHelp.Text = "Help";
       //
       // miHelpAbout
       //
       this.miHelpAbout.Index = 0;
       this.miHelpAbout.Text = "About...";
       this.miHelpAbout.Click += new System.EventHandler(this.miAbout_Click);
       //
       // svgUrlCombo
       //
       this.svgUrlCombo.ItemHeight = 13;
       this.svgUrlCombo.Items.AddRange(new object[] {
                                              "http://www.w3.org/Graphics/SVG/Test/20011026/rendering-orderGr-BE-01.svg",
                                              "http://www.croczilla.com/svg/butterfly.xml",
                                              "http://www.croczilla.com/svg/tiger.xml",
                                              "http://www.croczilla.com/svg/skew01.xml",
                                              "http://www.protocol7.com/svg.net/people.svg"});
       this.svgUrlCombo.Location = new System.Drawing.Point(8, 8);
       this.svgUrlCombo.Name = "svgUrlCombo";
       this.svgUrlCombo.Size = new System.Drawing.Size(336, 21);
       this.svgUrlCombo.TabIndex = 5;
       //
       // panel1
       //
       this.panel1.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.panel1.AutoScroll = true;
       this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
       this.panel1.Controls.Add(this.pbRefImage);
       this.panel1.Controls.Add(this.svgPictureBox);
       this.panel1.Location = new System.Drawing.Point(0, 43);
       this.panel1.Name = "panel1";
       this.panel1.Size = new System.Drawing.Size(720, 373);
       this.panel1.TabIndex = 24;
       //
       // pbRefImage
       //
       this.pbRefImage.Location = new System.Drawing.Point(8, 8);
       this.pbRefImage.Name = "pbRefImage";
       this.pbRefImage.Size = new System.Drawing.Size(480, 360);
       this.pbRefImage.TabIndex = 26;
       this.pbRefImage.TabStop = false;
       this.pbRefImage.Visible = false;
       //
       // svgPictureBox
       //
       this.svgPictureBox.Location = new System.Drawing.Point(0, 0);
       this.svgPictureBox.Name = "svgPictureBox";
       this.svgPictureBox.Size = new System.Drawing.Size(718, 371);
       this.svgPictureBox.AutoSize = true;
       this.svgPictureBox.TabIndex = 25;
       //
       // SvgViewerForm
       //
       this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
       this.ClientSize = new System.Drawing.Size(720, 441);
       this.Controls.Add(this.panel1);
       this.Controls.Add(this.svgUrlCombo);
       this.Controls.Add(this.statusBar);
       this.Controls.Add(this.btnGo);
       this.Controls.Add(this.toolBar1);
       this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
       this.Menu = this.mainMenu1;
       this.Name = "SvgViewerForm";
       this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
       this.Text = ".NET SVG Viewer";
       this.Load += new System.EventHandler(this.SvgViewerForm_Load);
       this.panel1.ResumeLayout(false);
       this.ResumeLayout(false);
 }