The ComponentResourceManager is a resource manager object that provides simple functionality for enumerating resources for a component or object.
Inheritance: System.Resources.ResourceManager
Example #1
1
 /// <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);
 }
Example #2
0
 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();
 }
 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);
 }
Example #4
0
 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);
 }
Example #5
0
        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;
        }
Example #6
0
 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);
 }
Example #7
0
        /// <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();

        }
Example #8
0
 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();
 }
Example #9
0
        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);


                }
            }

            
            
        }
Example #10
0
 /// <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);
 }
		/// <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);

		}
Example #12
0
 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);
 }
        /// <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);

        }
		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);

		}
		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);
		}
Example #16
0
		/// <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();
		}
 /// <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);
 }
Example #18
0
 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);
 }
        /// <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);

        }
Example #20
0
 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;
 }
Example #21
0
 public void ChangeResources()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager( this.GetType() );
     resources.ApplyResources( this._tabControl, "_tabControl" );
     resources.ApplyResources( this._tabGeneral, "_tabGeneral" );
     resources.ApplyResources( this._groupBoxLanguage, "_groupBoxLanguage" );
     resources.ApplyResources( this._comboLanguage, "_comboLanguage" );
     resources.ApplyResources( this._groupBoxSpeed, "_groupBoxSpeed" );
     resources.ApplyResources( this._trackSpeed, "_trackSpeed" );
     resources.ApplyResources( this._groupBoxNames, "_groupBoxNames" );
     resources.ApplyResources( this._boxWestName, "_boxWestName" );
     resources.ApplyResources( this._labelWestName, "_labelWestName" );
     resources.ApplyResources( this._boxEastName, "_boxEastName" );
     resources.ApplyResources( this._labelSouthName, "_labelSouthName" );
     resources.ApplyResources( this._boxSouthName, "_boxSouthName" );
     resources.ApplyResources( this._boxNorthName, "_boxNorthName" );
     resources.ApplyResources( this._labelNorthName, "_labelNorthName" );
     resources.ApplyResources( this._labelEastName, "_labelEastName" );
     resources.ApplyResources( this._tabAdvanced, "_tabAdvanced" );
     resources.ApplyResources( this._groupBoxCards, "_groupBoxCards" );
     resources.ApplyResources( this._groupBoxRules, "_groupBoxRules" );
     resources.ApplyResources( this._labelExtraDouble, "_labelExtraDouble" );
     resources.ApplyResources( this._labelCapotDouble, "_labelCapotDouble" );
     resources.ApplyResources( this._checkCapotDouble, "_checkCapotDouble" );
     resources.ApplyResources( this._checkExtraDouble, "_checkExtraDouble" );
     resources.ApplyResources( this._gbDlls, "_gbDlls" );
     resources.ApplyResources( this._labelWest, "_labelWest" );
     resources.ApplyResources( this._labelNorth, "_labelNorth" );
     resources.ApplyResources( this._labelEast, "_labelEast" );
     resources.ApplyResources( this._buttonCancel, "_buttonCancel" );
     resources.ApplyResources( this._buttonOK, "_buttonOK" );
     resources.ApplyResources( this, "$this" );
 }
Example #22
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     ComponentResourceManager resources = new ComponentResourceManager(typeof(AttributeDialog));
     this.btnClose = new Button();
     this.tableEditorControl1 = new TableEditorControl();
     this.SuspendLayout();
     //
     // btnClose
     //
     resources.ApplyResources(this.btnClose, "btnClose");
     this.btnClose.Name = "btnClose";
     this.btnClose.UseVisualStyleBackColor = true;
     this.btnClose.Click += new EventHandler(this.btnClose_Click_1);
     //
     // tableEditorControl1
     //
     resources.ApplyResources(this.tableEditorControl1, "tableEditorControl1");
     this.tableEditorControl1.IgnoreSelectionChanged = false;
     this.tableEditorControl1.IsEditable = true;
     this.tableEditorControl1.Name = "tableEditorControl1";
     this.tableEditorControl1.ShowFileName = true;
     this.tableEditorControl1.ShowMenuStrip = true;
     this.tableEditorControl1.ShowProgressBar = false;
     this.tableEditorControl1.ShowSelectedRowsOnly = false;
     this.tableEditorControl1.ShowToolStrip = true;
     //
     // AttributeDialog
     //
     resources.ApplyResources(this, "$this");
     //
     this.Controls.Add(this.btnClose);
     this.Controls.Add(this.tableEditorControl1);
     this.Name = "AttributeDialog";
     this.ResumeLayout(false);
 }
Example #23
0
        public Manager(String fileName)
        {
            localization = new System.ComponentModel.ComponentResourceManager(typeof(WorkerTimeStrings));
            this.fileName = fileName;
            if (File.Exists(fileName)) {
                this.sqlConnection = new SQLiteConnection("Data Source=" + fileName );
                this.sqlCommand = this.sqlConnection.CreateCommand();
                sqlConnection.Open();
            } else {
                this.sqlConnection = new SQLiteConnection("Data Source=" + fileName);
                this.sqlCommand = this.sqlConnection.CreateCommand();
                sqlConnection.Open();

                ExecuteNonQuery("CREATE TABLE Tracks ([ID] INTEGER PRIMARY KEY AUTOINCREMENT, [ProjectID] INTEGER, [ActivityID] INTEGER, [Start] DATETIME, [End] DATETIME, [Duration] INTEGER)");
                ExecuteNonQuery("CREATE TABLE Projects ([ID] INTEGER PRIMARY KEY AUTOINCREMENT, [Name] TEXT)");
                ExecuteNonQuery("CREATE TABLE Activity ([ID] INTEGER PRIMARY KEY AUTOINCREMENT, [Name] TEXT, [ProjectID] INTEGER)");

                if (MessageBox.Show(localization.GetString("String10"), localization.GetString("String3"), MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes )
                {
                    ExecuteNonQuery("INSERT INTO Projects (Name) VALUES ('" + localization.GetString("String12") + " 1')");
                    ExecuteNonQuery("INSERT INTO Projects (Name) VALUES ('" + localization.GetString("String12") + " 2')");
                    ExecuteNonQuery("INSERT INTO Projects (Name) VALUES ('" + localization.GetString("String12") + " 3')");
                    ExecuteNonQuery("INSERT INTO Activity (Name,ProjectID) VALUES ('" + localization.GetString("String13") + " 1',1)");
                    ExecuteNonQuery("INSERT INTO Activity (Name,ProjectID) VALUES ('" + localization.GetString("String13") + " 2',1)");
                    ExecuteNonQuery("INSERT INTO Activity (Name,ProjectID) VALUES ('" + localization.GetString("String13") + " 3',1)");
                    ExecuteNonQuery("INSERT INTO Activity (Name,ProjectID) VALUES ('" + localization.GetString("String13") + " 1',2)");
                    ExecuteNonQuery("INSERT INTO Activity (Name,ProjectID) VALUES ('" + localization.GetString("String13") + " 2',2)");
                    ExecuteNonQuery("INSERT INTO Activity (Name,ProjectID) VALUES ('" + localization.GetString("String13") + " 3',2)");
                }
            }

            Update1();
        }
Example #24
0
 private static void LocalizeForm(Form frm)
 {
     var manager = new ComponentResourceManager(frm.GetType());
     manager.ApplyResources(frm, "$this");
     ApplyResources(manager, frm.Controls);
     
 }
Example #25
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Labelled));
     this.groupBox1 = new GroupBox();
     this.textBox1 = new TextBox();
     this.groupBox1.SuspendLayout();
     base.SuspendLayout();
     this.groupBox1.Controls.Add(this.textBox1);
     this.groupBox1.Location = new Point(13, 10);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new Size(0x128, 0x189);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "标签说明:";
     this.textBox1.Location = new Point(7, 0x15);
     this.textBox1.Multiline = true;
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new Size(0x11b, 0x162);
     this.textBox1.TabIndex = 0;
     this.textBox1.Text = resources.GetString("textBox1.Text");
     base.AutoScaleDimensions = new SizeF(6f, 12f);
     base.AutoScaleMode = AutoScaleMode.Font;
     base.ClientSize = new Size(0x141, 0x199);
     base.Controls.Add(this.groupBox1);
     base.FormBorderStyle = FormBorderStyle.FixedDialog;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "Labelled";
     base.StartPosition = FormStartPosition.CenterScreen;
     this.Text = "Labelled";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     base.ResumeLayout(false);
 }
Example #26
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
     this.picApp = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.picApp)).BeginInit();
     this.SuspendLayout();
     //
     // picApp
     //
     this.picApp.Location = new System.Drawing.Point(0, 0);
     this.picApp.Name = "picApp";
     this.picApp.Size = new System.Drawing.Size(292, 136);
     this.picApp.TabIndex = 0;
     this.picApp.TabStop = false;
     this.picApp.Click += new System.EventHandler(this.pictureBox1_Click);
     //
     // frmMain
     //
     this.ClientSize = new System.Drawing.Size(292, 136);
     this.Controls.Add(this.picApp);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.Name = "frmMain";
     this.Text = "In Game";
     ((System.ComponentModel.ISupportInitialize)(this.picApp)).EndInit();
     this.ResumeLayout(false);
 }
		public void ApplyResources_ObjectName_Null ()
		{
			ComponentResourceManager crm = new ComponentResourceManager ();
			try {
				crm.ApplyResources (new object (), (string) null);
				Assert.Fail ("#A1");
			} catch (ArgumentNullException ex) {
				Assert.AreEqual (typeof (ArgumentNullException), ex.GetType (), "#A2");
				Assert.IsNull (ex.InnerException, "#A3");
				Assert.IsNotNull (ex.Message, "#A4");
				Assert.IsNotNull (ex.ParamName, "#A5");
				Assert.AreEqual ("objectName", ex.ParamName, "#A6");
			}

			try {
				crm.ApplyResources (new object (), (string) null, CultureInfo.InvariantCulture);
				Assert.Fail ("#B1");
			} catch (ArgumentNullException ex) {
				Assert.AreEqual (typeof (ArgumentNullException), ex.GetType (), "#B2");
				Assert.IsNull (ex.InnerException, "#B3");
				Assert.IsNotNull (ex.Message, "#B4");
				Assert.IsNotNull (ex.ParamName, "#B5");
				Assert.AreEqual ("objectName", ex.ParamName, "#B6");
			}
		}
        /// <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(FlashView));
            this.flashMovie = new AxShockwaveFlashObjects.AxShockwaveFlash();
            ((System.ComponentModel.ISupportInitialize)(this.flashMovie)).BeginInit();
            this.SuspendLayout();
            // 
            // flashMovie
            // 
            this.flashMovie.Dock = System.Windows.Forms.DockStyle.Fill;
            this.flashMovie.Enabled = true;
            this.flashMovie.Location = new System.Drawing.Point(0, 0);
            this.flashMovie.Name = "flashMovie";
            this.flashMovie.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("flashMovie.OcxState")));
            this.flashMovie.Size = new System.Drawing.Size(571, 367);
            this.flashMovie.TabIndex = 0;
            // 
            // FlashView
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.flashMovie);
            this.Name = "FlashView";
            this.Load += new EventHandler(this.FlashViewLoad);
            this.Size = new System.Drawing.Size(571, 367);
            ((System.ComponentModel.ISupportInitialize)(this.flashMovie)).EndInit();
            this.ResumeLayout(false);

        }
        /// <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(FindSymbolDialog));
            this.elementHost1 = new System.Windows.Forms.Integration.ElementHost();
            this.findSymbolControl1 = new Rubberduck.UI.FindSymbol.FindSymbolControl();
            this.SuspendLayout();
            // 
            // elementHost1
            // 
            this.elementHost1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.elementHost1.Location = new System.Drawing.Point(0, 0);
            this.elementHost1.Name = "elementHost1";
            this.elementHost1.Size = new System.Drawing.Size(287, 24);
            this.elementHost1.TabIndex = 2;
            this.elementHost1.Child = this.findSymbolControl1;
            // 
            // FindSymbolDialog
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(287, 24);
            this.Controls.Add(this.elementHost1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Icon = (System.Drawing.Icon)RubberduckUI.Ducky;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "FindSymbolDialog";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Rubberduck - Find Symbol";
            this.ResumeLayout(false);

        }
 private void ChangeUILanguage()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptionsForm));
     MainForm.ApplyResources(this,resources);
     if (MainForm != null)
         MainForm.Reload();
 }