• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# ComponentModel.ComponentResourceManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.ComponentModel.ComponentResourceManager的典型用法代码示例。如果您正苦于以下问题:C# ComponentResourceManager类的具体用法?C# ComponentResourceManager怎么用?C# ComponentResourceManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ComponentResourceManager类属于System.ComponentModel命名空间,在下文中一共展示了ComponentResourceManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutForm));
     this.label1 = new System.Windows.Forms.Label();
     this.listBox1 = new System.Windows.Forms.ListBox();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(64, 16);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(248, 32);
     this.label1.TabIndex = 1;
     this.label1.Text = "HyperLoad 2.0";
     //
     // listBox1
     //
     this.listBox1.Items.AddRange(new object[] {
     "This program is completely free to use!",
     "",
     "Hyperload is an open-source program that can be used to",
     "program *.HEX files to your microcontroller.",
     "",
     "The Hyperload Protocol & related information can be found at:",
     "www.sociaLLedge.com/sjsu"});
     this.listBox1.Location = new System.Drawing.Point(14, 84);
     this.listBox1.Name = "listBox1";
     this.listBox1.Size = new System.Drawing.Size(304, 108);
     this.listBox1.TabIndex = 5;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.listBox1);
     this.groupBox1.Location = new System.Drawing.Point(8, 8);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(320, 210);
     this.groupBox1.TabIndex = 8;
     this.groupBox1.TabStop = false;
     //
     // AboutForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor = System.Drawing.SystemColors.Control;
     this.ClientSize = new System.Drawing.Size(338, 225);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "AboutForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "About";
     this.Deactivate += new System.EventHandler(this.AboutForm_Deactivate);
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:kammce,项目名称:SJSU-DEV-Linux,代码行数:64,代码来源:AboutForm.cs


示例2: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager manager = new ComponentResourceManager(typeof(frmCommSiRFAwarePic));
     this.label1 = new Label();
     this.button_OK = new Button();
     this.pictureBox1 = new PictureBox();
     this.label2 = new Label();
     ((ISupportInitialize) this.pictureBox1).BeginInit();
     base.SuspendLayout();
     this.label1.AutoSize = true;
     this.label1.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.label1.Location = new Point(0x31, 0xf9);
     this.label1.Name = "label1";
     this.label1.Size = new Size(0x19b, 0x10);
     this.label1.TabIndex = 1;
     this.label1.Text = "For 4e EVK: Toggle the Pulse switch to return to normal power mode.";
     this.button_OK.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.button_OK.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.button_OK.Location = new Point(0xd9, 0x137);
     this.button_OK.Name = "button_OK";
     this.button_OK.Size = new Size(0x48, 0x17);
     this.button_OK.TabIndex = 3;
     this.button_OK.Text = "&OK";
     this.button_OK.UseVisualStyleBackColor = true;
     this.button_OK.Click += new EventHandler(this.button_OK_Click);
     this.pictureBox1.BackgroundImage = Resources.EVK4e_Arrows;
     this.pictureBox1.ErrorImage = null;
     this.pictureBox1.InitialImage = null;
     this.pictureBox1.Location = new Point(0x24, 0x18);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new Size(0x1b4, 0xc9);
     this.pictureBox1.TabIndex = 0;
     this.pictureBox1.TabStop = false;
     this.label2.AutoSize = true;
     this.label2.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.label2.Location = new Point(0x7b, 0x112);
     this.label2.Name = "label2";
     this.label2.Size = new Size(0x11b, 0x10);
     this.label2.TabIndex = 4;
     this.label2.Text = "Press OK and then Exit the SiRFaware window.";
     base.AcceptButton = this.button_OK;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new Size(0x1fd, 0x15f);
     base.Controls.Add(this.label2);
     base.Controls.Add(this.button_OK);
     base.Controls.Add(this.label1);
     base.Controls.Add(this.pictureBox1);
     base.Icon = (Icon) manager.GetObject("$this.Icon");
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "frmCommSiRFAwarePic";
     base.ShowInTaskbar = false;
     base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     base.StartPosition = FormStartPosition.CenterScreen;
     this.Text = "Switching from SiRFaware to Full Power Mode on 4e";
     ((ISupportInitialize) this.pictureBox1).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
开发者ID:facchinm,项目名称:SiRFLive,代码行数:60,代码来源:frmCommSiRFAwarePic.cs


示例3: ActivityBindForm

 public ActivityBindForm(IServiceProvider serviceProvider, ITypeDescriptorContext context)
 {
     this.context = context;
     this.serviceProvider = serviceProvider;
     this.InitializeComponent();
     this.createProperty.Checked = true;
     this.helpTextBox.Multiline = true;
     IUIService service = (IUIService) this.serviceProvider.GetService(typeof(IUIService));
     if (service != null)
     {
         this.Font = (Font) service.Styles["DialogFont"];
     }
     ComponentResourceManager manager = new ComponentResourceManager(typeof(ActivityBindForm));
     this.ActivityBindDialogTitleFormat = manager.GetString("ActivityBindDialogTitleFormat");
     this.PropertyAssignableFormat = manager.GetString("PropertyAssignableFormat");
     this.DescriptionFormat = manager.GetString("DescriptionFormat");
     this.EditIndex = manager.GetString("EditIndex");
     this.PleaseSelectCorrectActivityProperty = manager.GetString("PleaseSelectCorrectActivityProperty");
     this.PleaseSelectActivityProperty = manager.GetString("PleaseSelectActivityProperty");
     this.IncorrectIndexChange = manager.GetString("IncorrectIndexChange");
     this.CreateNewMemberHelpFormat = manager.GetString("CreateNewMemberHelpFormat");
     this.memberTypes = new ImageList();
     this.memberTypes.ImageStream = (ImageListStreamer) manager.GetObject("memberTypes.ImageStream");
     this.memberTypes.TransparentColor = AmbientTheme.TransparentColor;
     this.properties = CustomActivityDesignerHelper.GetCustomProperties(context);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:26,代码来源:ActivityBindForm.cs


示例4: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager resources = new ComponentResourceManager(typeof(HelpForm));
     this.docViewer = new WebBrowser();
     base.SuspendLayout();
     this.docViewer.AllowWebBrowserDrop = false;
     this.docViewer.Dock = DockStyle.Fill;
     this.docViewer.IsWebBrowserContextMenuEnabled = false;
     this.docViewer.Location = new Point(0, 0);
     this.docViewer.MinimumSize = new Size(20, 20);
     this.docViewer.Name = "docViewer";
     this.docViewer.Size = new Size(0x124, 0x252);
     this.docViewer.TabIndex = 2;
     this.docViewer.TabStop = false;
     this.docViewer.Url = new Uri("", UriKind.Relative);
     this.docViewer.WebBrowserShortcutsEnabled = false;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     base.ClientSize = new Size(0x124, 0x252);
     base.Controls.Add(this.docViewer);
     base.Icon = (Icon) resources.GetObject("$this.Icon");
     base.Name = "HelpForm";
     base.StartPosition = FormStartPosition.Manual;
     this.Text = "HelpForm";
     base.ResumeLayout(false);
 }
开发者ID:JamesH001,项目名称:SX1231,代码行数:26,代码来源:HelpForm.cs


示例5: CecButtonConfigUI

        public CecButtonConfigUI(CecButtonConfigItem button)
        {
            _button = button;
              InitializeComponent();

              var keys = Enum.GetValues(typeof (WindowsAPI.VirtualKeyCode));
              string[] friendlyNames = new string[keys.Length];
              for (int i = 0; i < keys.Length; i++)
            friendlyNames[i] = WindowsAPI.GetVirtualKeyName((WindowsAPI.VirtualKeyCode)keys.GetValue(i));
              Array.Sort(friendlyNames);
              foreach (var item in friendlyNames)
            cbAddKey.Items.Add(item);

              button.SettingChanged += delegate
                                 {
                                   _lastSelectedText = 0;
                                   tbAction.Text = button.Value.AsFriendlyString().Trim();
                                 };

              lButtonName.Text = button.Label.Text;
              tbAction.Text = button.Value.AsFriendlyString().Trim();

              //TODO
              cbAddAction.Items.Add(ApplicationInput.FriendlyActionName(ActionType.CloseControllerApplication));
              cbAddAction.Items.Add(ApplicationInput.FriendlyActionName(ActionType.StartApplication));

              // take the icon of the main window
              ComponentResourceManager resources = new ComponentResourceManager(typeof(CECTray));
              Icon = resources.GetObject("$this.Icon") as Icon;
        }
开发者ID:n8o,项目名称:libcec,代码行数:30,代码来源:CecButtonConfigUI.cs


示例6: InitializeComponent

 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(todayDeviceID));
     this.label1 = new System.Windows.Forms.Label();
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
     this.label1.Location = new System.Drawing.Point(35, 4);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(150, 28);
     this.label1.Text = "label1";
     this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // pictureBox1
     //
     this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(4, 4);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new System.Drawing.Size(25, 28);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     //
     // todayDeviceID
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.label1);
     this.Name = "todayDeviceID";
     this.Size = new System.Drawing.Size(230, 37);
     this.Paint += new System.Windows.Forms.PaintEventHandler(this.todayDeviceID_Paint);
     this.ResumeLayout(false);
 }
开发者ID:hjgode,项目名称:todayPlugins,代码行数:35,代码来源:todayDeviceID.cs


示例7: InitializeComponent

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DoubleBox));
            this.lblCaption = new System.Windows.Forms.Label();
            this.txtValue = new System.Windows.Forms.TextBox();
            this.ttHelp = new System.Windows.Forms.ToolTip(this.components);
            this.SuspendLayout();
            // 
            // lblCaption
            // 
            resources.ApplyResources(this.lblCaption, "lblCaption");
            this.lblCaption.Name = "lblCaption";
            // 
            // txtValue
            // 
            resources.ApplyResources(this.txtValue, "txtValue");
            this.txtValue.Name = "txtValue";
            this.txtValue.TextChanged += new System.EventHandler(this.txtValue_TextChanged);
            // 
            // DoubleBox
            // 
            resources.ApplyResources(this, "$this");
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.txtValue);
            this.Controls.Add(this.lblCaption);
            this.Name = "DoubleBox";
            this.ResumeLayout(false);
            this.PerformLayout();

        }
开发者ID:zhongshuiyuan,项目名称:mapwindowsix,代码行数:35,代码来源:DoubleBox.cs


示例8: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmLHXZ));
     this.btnClose = new Button();
     this.txt = new TextBox();
     base.SuspendLayout();
     this.btnClose.Location = new Point(150, 217);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new Size(113, 29);
     this.btnClose.TabIndex = 12;
     this.btnClose.Text = "关闭";
     this.btnClose.UseVisualStyleBackColor = true;
     this.btnClose.Click += new EventHandler(this.btnClose_Click);
     this.txt.Location = new Point(0, 0);
     this.txt.Multiline = true;
     this.txt.Name = "txt";
     this.txt.Size = new Size(424, 211);
     this.txt.TabIndex = 13;
     base.AutoScaleMode = AutoScaleMode.None;
     base.ClientSize = new Size(422, 256);
     base.Controls.Add(this.txt);
     base.Controls.Add(this.btnClose);
     this.Font = new Font("宋体", 10f, FontStyle.Regular, GraphicsUnit.Point, 134);
     base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
     base.MaximizeBox = false;
     this.MaximumSize = new Size(430, 290);
     this.MinimumSize = new Size(430, 290);
     base.Name = "frmLHXZ";
     base.StartPosition = FormStartPosition.CenterScreen;
     this.Text = "理化性质";
     base.ResumeLayout(false);
     base.PerformLayout();
 }
开发者ID:wangshu,项目名称:NY_HACK,代码行数:33,代码来源:frmLHXZ.cs


示例9: updateCulture

        public void updateCulture(String cultureName)
        {


            CultureInfo _newCulture = new CultureInfo(cultureName);
            
            ComponentResourceManager resources = new ComponentResourceManager(typeof(MainForm));
            if(_currentCulture != _newCulture)
            {
                _currentCulture = _newCulture;
                if (_parentControl != null)
                {
                    Thread.CurrentThread.CurrentUICulture = _newCulture;

                    //Changes the resources (text) of all controls to the new locale
                    updateControls(resources, _parentControl);

                    //Applies the same changes to all menus
                    updateMenus(resources, _parentControl);


                }
            }

            
            
        }
开发者ID:Oplkill,项目名称:WorldSmith,代码行数:27,代码来源:LocaleManager.cs


示例10: InitializeComponent

 /// <summary>
 /// �f�U�C�i �T�|�[�g�ɕK�v�ȃ��\�b�h�ł��B���̃��\�b�h�̓�e��
 /// �R�[�h �G�f�B�^�ŕύX���Ȃ��ł��������B
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormOptions));
     this.PropertyGridOptions = new System.Windows.Forms.PropertyGrid();
     this.SuspendLayout();
     //
     // PropertyGridOptions
     //
     this.PropertyGridOptions.Dock = System.Windows.Forms.DockStyle.Fill;
     this.PropertyGridOptions.LineColor = System.Drawing.SystemColors.ScrollBar;
     this.PropertyGridOptions.Location = new System.Drawing.Point(0, 0);
     this.PropertyGridOptions.Name = "PropertyGridOptions";
     this.PropertyGridOptions.Size = new System.Drawing.Size(472, 454);
     this.PropertyGridOptions.TabIndex = 0;
     //
     // FormOptions
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
     this.ClientSize = new System.Drawing.Size(472, 454);
     this.Controls.Add(this.PropertyGridOptions);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "FormOptions";
     this.Text = "�I�v�V����";
     this.ResumeLayout(false);
 }
开发者ID:saasan,项目名称:PSUTools,代码行数:30,代码来源:FormOptions.cs


示例11: InitializeComponent

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UpdatesWindow));
            this.webBrowser1 = new System.Windows.Forms.WebBrowser();
            this.SuspendLayout();
            // 
            // webBrowser1
            // 
            this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.webBrowser1.Location = new System.Drawing.Point(0, 0);
            this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
            this.webBrowser1.Name = "webBrowser1";
            this.webBrowser1.Size = new System.Drawing.Size(794, 572);
            this.webBrowser1.TabIndex = 0;
            this.webBrowser1.Url = new System.Uri("", System.UriKind.Relative);
            // 
            // UpdatesWindow
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.BackColor = System.Drawing.SystemColors.Control;
            this.ClientSize = new System.Drawing.Size(794, 572);
            this.Controls.Add(this.webBrowser1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "UpdatesWindow";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Update Notice";
            this.ResumeLayout(false);

		}
开发者ID:carriercomm,项目名称:codegenerator,代码行数:34,代码来源:UpdatesWindow.cs


示例12: InitializeComponent

 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LoadingControl));
     this.labelMessage = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // labelMessage
     //
     this.labelMessage.BackColor = System.Drawing.Color.Transparent;
     this.labelMessage.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.labelMessage.ForeColor = System.Drawing.Color.White;
     this.labelMessage.Location = new System.Drawing.Point(35, -4);
     this.labelMessage.Name = "labelMessage";
     this.labelMessage.Size = new System.Drawing.Size(249, 27);
     this.labelMessage.TabIndex = 0;
     this.labelMessage.Text = "Loading...";
     this.labelMessage.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.labelMessage.Paint += new System.Windows.Forms.PaintEventHandler(this.labelMessage_Paint);
     //
     // LoadingControl
     //
     this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
     this.Controls.Add(this.labelMessage);
     this.DoubleBuffered = true;
     this.Name = "LoadingControl";
     this.Size = new System.Drawing.Size(600, 140);
     this.ResumeLayout(false);
 }
开发者ID:Stoner19,项目名称:Memory-Lifter,代码行数:29,代码来源:LoadingControl.cs


示例13: InitializeComponent

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main));
            this.btnCapture = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // btnCapture
            // 
            this.btnCapture.BackgroundImage = global::digioz.desktop.capture.Properties.Resources.Record;
            this.btnCapture.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.btnCapture.Location = new System.Drawing.Point(119, 2);
            this.btnCapture.Name = "btnCapture";
            this.btnCapture.Size = new System.Drawing.Size(54, 53);
            this.btnCapture.TabIndex = 0;
            this.btnCapture.UseVisualStyleBackColor = true;
            this.btnCapture.Click += new System.EventHandler(this.btnCapture_Click);
            // 
            // Main
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.White;
            this.ClientSize = new System.Drawing.Size(298, 58);
            this.Controls.Add(this.btnCapture);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "Main";
            this.ShowIcon = false;
            this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            this.Text = "DigiOz Screen Capture";
            this.Load += new System.EventHandler(this.Form1_Load);
            this.ResumeLayout(false);

        }
开发者ID:digioz,项目名称:windows-applications,代码行数:38,代码来源:Main.Designer.cs


示例14: InitializeComponent

		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ZoomTo));
			this.label1 = new System.Windows.Forms.Label();
			this.cbMagnify = new System.Windows.Forms.ComboBox();
			this.bOK = new System.Windows.Forms.Button();
			this.bCancel = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// label1
			// 
			resources.ApplyResources(this.label1, "label1");
			this.label1.Name = "label1";
			// 
			// cbMagnify
			// 
			resources.ApplyResources(this.cbMagnify, "cbMagnify");
			this.cbMagnify.Items.AddRange(new object[] {
            resources.GetString("cbMagnify.Items"),
            resources.GetString("cbMagnify.Items1"),
            resources.GetString("cbMagnify.Items2"),
            resources.GetString("cbMagnify.Items3"),
            resources.GetString("cbMagnify.Items4"),
            resources.GetString("cbMagnify.Items5"),
            resources.GetString("cbMagnify.Items6"),
            resources.GetString("cbMagnify.Items7"),
            resources.GetString("cbMagnify.Items8"),
            resources.GetString("cbMagnify.Items9"),
            resources.GetString("cbMagnify.Items10")});
			this.cbMagnify.Name = "cbMagnify";
			// 
			// bOK
			// 
			resources.ApplyResources(this.bOK, "bOK");
			this.bOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.bOK.Name = "bOK";
			this.bOK.Click += new System.EventHandler(this.bOK_Click);
			// 
			// bCancel
			// 
			resources.ApplyResources(this.bCancel, "bCancel");
			this.bCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.bCancel.Name = "bCancel";
			this.bCancel.Click += new System.EventHandler(this.bCancel_Click);
			// 
			// ZoomTo
			// 
			resources.ApplyResources(this, "$this");
			this.Controls.Add(this.bCancel);
			this.Controls.Add(this.bOK);
			this.Controls.Add(this.cbMagnify);
			this.Controls.Add(this.label1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "ZoomTo";
			this.ShowInTaskbar = false;
			this.ResumeLayout(false);

		}
开发者ID:Elboodo,项目名称:My-FyiReporting,代码行数:60,代码来源:ZoomTo.Designer.cs


示例15: ConfigurarVelocidadMaxima

		public ConfigurarVelocidadMaxima ()
		{
			Label texto = new Label();
			texto.Location = new Point (10,10);
			texto.Size = new Size (110, 20);
			texto.Text = "Velocidad Maxima:";
			texto.Anchor = ((AnchorStyles)(AnchorStyles.Left | AnchorStyles.Top));

			entrada = new TextBox ();
			entrada.Location = new Point (130, 10);
			entrada.Size = new Size (200, 20);
			entrada.Text = "50";
			entrada.Anchor = ((AnchorStyles)(AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom));

			aceptar = new Button ();
			aceptar.Text = "Aceptar";
			aceptar.Location = new Point (280,40);
			aceptar.Size = new Size (50, 23);
			aceptar.Anchor = ((AnchorStyles)(AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Bottom));
			aceptar.Click += new EventHandler (eventoAceptar);

			this.Text = "Configuración - Velocidad Maxima";
			this.ClientSize = new Size (340 , 70);
			ComponentResourceManager recurso = new ComponentResourceManager(typeof(Ventana));
			this.Icon = (Icon)(recurso.GetObject("$this.Icon"));

			Controls.Add (texto);
			Controls.Add (entrada);
			Controls.Add (aceptar);
		}
开发者ID:CarlBarr,项目名称:Simulador-Trafico-Vehicular,代码行数:30,代码来源:ConfigurarVelocidadMaxima.cs


示例16: InitializeComponent

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DavidTheCreator));
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
			this.SuspendLayout();
			// 
			// pictureBox1
			// 
			this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
			this.pictureBox1.Location = new System.Drawing.Point(0, 0);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(300, 400);
			this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
			this.pictureBox1.TabIndex = 0;
			this.pictureBox1.TabStop = false;
			this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
			// 
			// DavidTheCreator
			// 
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
			this.ClientSize = new System.Drawing.Size(300, 400);
			this.Controls.Add(this.pictureBox1);
			this.Font = new System.Drawing.Font("Tahoma", 8.25F);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			this.Name = "DavidTheCreator";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "David is the creator of a history";
			((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
			this.ResumeLayout(false);
			this.PerformLayout();
		}
开发者ID:divyang4481,项目名称:lextudio,代码行数:38,代码来源:DavidTheCreator.cs


示例17: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InformacjaOProdukcie));
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.label1 = new System.Windows.Forms.Label();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.label2 = new System.Windows.Forms.Label();
     this.button1 = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label1);
     resources.ApplyResources(this.groupBox1, "groupBox1");
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.TabStop = false;
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     this.label1.Click += new System.EventHandler(this.label1_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.label2);
     resources.ApplyResources(this.groupBox2, "groupBox2");
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.TabStop = false;
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name = "label2";
     //
     // button1
     //
     resources.ApplyResources(this.button1, "button1");
     this.button1.Name = "button1";
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // InformacjaOProdukcie
     //
     resources.ApplyResources(this, "$this");
     this.Controls.Add(this.button1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "InformacjaOProdukcie";
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
     this.Load += new System.EventHandler(this.InformacjaOProdukcie_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:cramer7575,项目名称:BudzikStary,代码行数:64,代码来源:InformacjaOProdukcie.cs


示例18: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager resources = new ComponentResourceManager(typeof(Win_DataFilterBlockDiagram));
     this.pictureBox1 = new PictureBox();
     this.btnClose = new Button();
     ((ISupportInitialize) this.pictureBox1).BeginInit();
     base.SuspendLayout();
     this.pictureBox1.BackColor = Color.Transparent;
     this.pictureBox1.Image = (Image) resources.GetObject("pictureBox1.Image");
     this.pictureBox1.Location = new Point(0, 0);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new Size(0x223, 460);
     this.pictureBox1.TabIndex = 0;
     this.pictureBox1.TabStop = false;
     this.btnClose.Location = new Point(0xea, 0x1d0);
     this.btnClose.Name = "btnClose";
     this.btnClose.Size = new Size(0x61, 0x17);
     this.btnClose.TabIndex = 2;
     this.btnClose.Text = "Close";
     this.btnClose.UseVisualStyleBackColor = true;
     this.btnClose.Click += new EventHandler(this.btnClose_Click);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.BackColor = SystemColors.Control;
     base.ClientSize = new Size(0x224, 0x1f0);
     base.Controls.Add(this.btnClose);
     base.Controls.Add(this.pictureBox1);
     base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "Win_DataFilterBlockDiagram";
     base.ShowIcon = false;
     this.Text = "Data Filter Block Diagram";
     ((ISupportInitialize) this.pictureBox1).EndInit();
     base.ResumeLayout(false);
 }
开发者ID:x893,项目名称:WDS,代码行数:35,代码来源:Win_DataFilterBlockDiagram.cs


示例19: InitializeComponent

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GetUDiskInfo));
            this.listBox1 = new System.Windows.Forms.ListBox();
            this.SuspendLayout();
            // 
            // listBox1
            // 
            this.listBox1.FormattingEnabled = true;
            this.listBox1.ItemHeight = 12;
            this.listBox1.Location = new System.Drawing.Point(46, 30);
            this.listBox1.Name = "listBox1";
            this.listBox1.Size = new System.Drawing.Size(120, 88);
            this.listBox1.TabIndex = 0;
            this.listBox1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listBox1_MouseDoubleClick);
            // 
            // GetUDiskInfo
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoSize = true;
            this.ClientSize = new System.Drawing.Size(584, 441);
            this.Controls.Add(this.listBox1);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "GetUDiskInfo";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "选择安全U盘";
            this.Load += new System.EventHandler(this.GetUDiskInfo_Load);
            this.ResumeLayout(false);

        }
开发者ID:junenigma,项目名称:uhvclient,代码行数:36,代码来源:GetUDiskInfo.Designer.cs


示例20: btnAddSave_Click

 private void btnAddSave_Click(object sender, EventArgs e)
 {
     int saveSelectedIndex = listBox.SelectedIndex;
     System.ComponentModel.ComponentResourceManager localResources = new System.ComponentModel.ComponentResourceManager(typeof(CustomEventsForm));
     if (txtCmd.Text == "")
     {
         MessageBox.Show(localResources.GetString("enterCommand"));
         return;
     }
     int selectedIndex = listBox.SelectedIndex;
     if (listBox.SelectedIndex == -1)
     {
         CustomEvent customEvent = new CustomEvent(
             txtCmd.Text, txtArgs.Text, boxWait.Checked);
         curCustomEvents.Add(customEvent);
     }
     else
     {
         CustomEvent customEvent = curCustomEvents[listBox.SelectedIndex];
         customEvent.cmd = txtCmd.Text;
         customEvent.args = txtArgs.Text;
         customEvent.execWait = boxWait.Checked;
     }
     RefreshDisplay();
     listBox.SelectedIndex = -1;   // Force refresh
     listBox.SelectedIndex = saveSelectedIndex;   // Re-select edited item
     ActiveControl = comboBox;
 }
开发者ID:dream1986,项目名称:cameyo,代码行数:28,代码来源:CustomEventsForm.cs



注:本文中的System.ComponentModel.ComponentResourceManager类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ComponentModel.Container类代码示例发布时间:2022-05-26
下一篇:
C# ComponentModel.Component类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap