当前位置: 首页>>代码示例>>C#>>正文


C# System.Resources.ResourceManager.GetObject方法代码示例

本文整理汇总了C#中System.Resources.ResourceManager.GetObject方法的典型用法代码示例。如果您正苦于以下问题:C# System.Resources.ResourceManager.GetObject方法的具体用法?C# System.Resources.ResourceManager.GetObject怎么用?C# System.Resources.ResourceManager.GetObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Resources.ResourceManager的用法示例。


在下文中一共展示了System.Resources.ResourceManager.GetObject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetResourceImage

 public static Image GetResourceImage(string imageName)
 {
     var assembly = Assembly.GetExecutingAssembly();
     var resourceName = assembly.GetName().Name + ".Properties.Resources";
     var resourceManager = new System.Resources.ResourceManager(resourceName, assembly);
     return (Bitmap)resourceManager.GetObject(imageName);
 }
开发者ID:adresyazilim,项目名称:Kolt,代码行数:7,代码来源:ResourceUtil.cs

示例2: InitializeComponent

		/// -----------------------------------------------------------------------------------
		/// <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(DummyDerivedForm));
			//
			// DummyDerivedForm
			//
			this.AutoScaleMode = AutoScaleMode.Font;
			this.AccessibleDescription = ((string)(resources.GetObject("$this.AccessibleDescription")));
			this.AccessibleName = ((string)(resources.GetObject("$this.AccessibleName")));
			this.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("$this.Anchor")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("$this.Dock")));
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "DummyDerivedForm";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.Visible = ((bool)(resources.GetObject("$this.Visible")));

		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:36,代码来源:DummyDerivedForm.cs

示例3: InitializeComponent

        private void InitializeComponent()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CustomTrackBar));
            this.pbCursor = new System.Windows.Forms.PictureBox();
            this.SuspendLayout();
            // 
            // pbCursor
            // 
            this.pbCursor.BackColor = System.Drawing.SystemColors.ActiveCaption;
            this.pbCursor.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pbCursor.BackgroundImage")));
            this.pbCursor.Location = new System.Drawing.Point(0, 0);
            this.pbCursor.Name = "pbCursor";
            this.pbCursor.Size = new System.Drawing.Size(12, 13);
            this.pbCursor.TabIndex = 0;
            this.pbCursor.TabStop = false;
            this.pbCursor.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pbCursor_MouseUp);
            this.pbCursor.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pbCursor_MouseMove);
            this.pbCursor.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbCursor_MouseDown);
            // 
            // CustomTrackBar
            // 
            this.BackColor = System.Drawing.SystemColors.Control;
            this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
            this.Controls.Add(this.pbCursor);
            this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
            this.Name = "CustomTrackBar";
            this.Size = new System.Drawing.Size(74, 14);
            this.ResumeLayout(false);

        }
开发者ID:psyCHOder,项目名称:conferencexp,代码行数:30,代码来源:CustomTrackBar.cs

示例4: 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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PicasaExitButton));
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     this.SuspendLayout();
     //
     // imageList1
     //
     this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
     this.imageList1.ImageSize = new System.Drawing.Size(13, 13);
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // pictureBox1
     //
     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(13, 13);
     this.pictureBox1.TabIndex = 0;
     this.pictureBox1.TabStop = false;
     this.pictureBox1.MouseEnter += new System.EventHandler(this.pictureBox1_MouseEnter);
     this.pictureBox1.MouseLeave += new System.EventHandler(this.pictureBox1_MouseLeave);
     //
     // PicasaExitButton
     //
     this.Controls.Add(this.pictureBox1);
     this.Name = "PicasaExitButton";
     this.Size = new System.Drawing.Size(13, 13);
     this.ResumeLayout(false);
 }
开发者ID:CarverLab,项目名称:Oyster,代码行数:37,代码来源:PicasaExitButton.cs

示例5: Main

		static void Main () {
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ResourceTest));
			img = Image.FromFile ("resources.bmp");
			img_res = ((System.Drawing.Image)(resources.GetObject("resources.bmp")));
			ico = new Icon ("resources.ico");
			ico_res = ((System.Drawing.Icon)(resources.GetObject("resources.ico")));
			Application.Run(new ResourceTest ());
		}
开发者ID:hitswa,项目名称:winforms,代码行数:8,代码来源:resources.cs

示例6: InitializeComponent

 /// <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( EncodingError ) );
     this.txLog = new System.Windows.Forms.TextBox();
     this.SuspendLayout();
     //
     // txLog
     //
     this.txLog.AccessibleDescription = resources.GetString( "txLog.AccessibleDescription" );
     this.txLog.AccessibleName = resources.GetString( "txLog.AccessibleName" );
     this.txLog.Anchor = ((System.Windows.Forms.AnchorStyles) (resources.GetObject( "txLog.Anchor" )));
     this.txLog.AutoSize = ((bool) (resources.GetObject( "txLog.AutoSize" )));
     this.txLog.BackgroundImage = ((System.Drawing.Image) (resources.GetObject( "txLog.BackgroundImage" )));
     this.txLog.Dock = ((System.Windows.Forms.DockStyle) (resources.GetObject( "txLog.Dock" )));
     this.txLog.Enabled = ((bool) (resources.GetObject( "txLog.Enabled" )));
     this.txLog.Font = ((System.Drawing.Font) (resources.GetObject( "txLog.Font" )));
     this.txLog.ImeMode = ((System.Windows.Forms.ImeMode) (resources.GetObject( "txLog.ImeMode" )));
     this.txLog.Location = ((System.Drawing.Point) (resources.GetObject( "txLog.Location" )));
     this.txLog.MaxLength = ((int) (resources.GetObject( "txLog.MaxLength" )));
     this.txLog.Multiline = ((bool) (resources.GetObject( "txLog.Multiline" )));
     this.txLog.Name = "txLog";
     this.txLog.PasswordChar = ((char) (resources.GetObject( "txLog.PasswordChar" )));
     this.txLog.ReadOnly = true;
     this.txLog.RightToLeft = ((System.Windows.Forms.RightToLeft) (resources.GetObject( "txLog.RightToLeft" )));
     this.txLog.ScrollBars = ((System.Windows.Forms.ScrollBars) (resources.GetObject( "txLog.ScrollBars" )));
     this.txLog.Size = ((System.Drawing.Size) (resources.GetObject( "txLog.Size" )));
     this.txLog.TabIndex = ((int) (resources.GetObject( "txLog.TabIndex" )));
     this.txLog.Text = resources.GetString( "txLog.Text" );
     this.txLog.TextAlign = ((System.Windows.Forms.HorizontalAlignment) (resources.GetObject( "txLog.TextAlign" )));
     this.txLog.Visible = ((bool) (resources.GetObject( "txLog.Visible" )));
     this.txLog.WordWrap = ((bool) (resources.GetObject( "txLog.WordWrap" )));
     //
     // EncodingError
     //
     this.AccessibleDescription = resources.GetString( "$this.AccessibleDescription" );
     this.AccessibleName = resources.GetString( "$this.AccessibleName" );
     this.AutoScaleBaseSize = ((System.Drawing.Size) (resources.GetObject( "$this.AutoScaleBaseSize" )));
     this.AutoScroll = ((bool) (resources.GetObject( "$this.AutoScroll" )));
     this.AutoScrollMargin = ((System.Drawing.Size) (resources.GetObject( "$this.AutoScrollMargin" )));
     this.AutoScrollMinSize = ((System.Drawing.Size) (resources.GetObject( "$this.AutoScrollMinSize" )));
     this.BackgroundImage = ((System.Drawing.Image) (resources.GetObject( "$this.BackgroundImage" )));
     this.ClientSize = ((System.Drawing.Size) (resources.GetObject( "$this.ClientSize" )));
     this.Controls.Add( this.txLog );
     this.Enabled = ((bool) (resources.GetObject( "$this.Enabled" )));
     this.Font = ((System.Drawing.Font) (resources.GetObject( "$this.Font" )));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
     this.Icon = ((System.Drawing.Icon) (resources.GetObject( "$this.Icon" )));
     this.ImeMode = ((System.Windows.Forms.ImeMode) (resources.GetObject( "$this.ImeMode" )));
     this.Location = ((System.Drawing.Point) (resources.GetObject( "$this.Location" )));
     this.MaximumSize = ((System.Drawing.Size) (resources.GetObject( "$this.MaximumSize" )));
     this.MinimumSize = ((System.Drawing.Size) (resources.GetObject( "$this.MinimumSize" )));
     this.Name = "EncodingError";
     this.RightToLeft = ((System.Windows.Forms.RightToLeft) (resources.GetObject( "$this.RightToLeft" )));
     this.StartPosition = ((System.Windows.Forms.FormStartPosition) (resources.GetObject( "$this.StartPosition" )));
     this.Text = resources.GetString( "$this.Text" );
     this.ResumeLayout( false );
 }
开发者ID:JMS-1,项目名称:CuttyEnc,代码行数:61,代码来源:EncodingError.cs

示例7: InitializeComponent

		private void InitializeComponent() {
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ProjectExplorer));
			this.tvwProject = new System.Windows.Forms.TreeView();
			this.panel1 = new System.Windows.Forms.Panel();
			this.btnRefresh = new System.Windows.Forms.Button();
			this.panel1.SuspendLayout();
			this.SuspendLayout();
			// 
			// tvwProject
			// 
			this.tvwProject.Dock = System.Windows.Forms.DockStyle.Fill;
			this.tvwProject.HideSelection = false;
			this.tvwProject.ImageIndex = -1;
			this.tvwProject.Location = new System.Drawing.Point(0, 0);
			this.tvwProject.Name = "tvwProject";
			this.tvwProject.SelectedImageIndex = -1;
			this.tvwProject.Size = new System.Drawing.Size(292, 266);
			this.tvwProject.TabIndex = 26;
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.btnRefresh);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(292, 24);
			this.panel1.TabIndex = 27;
			this.panel1.Visible = false;
			// 
			// btnRefresh
			// 
			this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.btnRefresh.Image = ((System.Drawing.Image)(resources.GetObject("btnRefresh.Image")));
			this.btnRefresh.Location = new System.Drawing.Point(0, 0);
			this.btnRefresh.Name = "btnRefresh";
			this.btnRefresh.Size = new System.Drawing.Size(24, 23);
			this.btnRefresh.TabIndex = 0;
			// 
			// ProjectExplorer
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(292, 266);
			this.Controls.Add(this.panel1);
			this.Controls.Add(this.tvwProject);
			this.HideOnClose = true;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Name = "ProjectExplorer";
			this.Text = "Project Explorer";
			this.panel1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
开发者ID:BackupTheBerlios,项目名称:ch3etah-svn,代码行数:52,代码来源:ProjectExplorer.cs

示例8: DataGridRadioColumn

 public DataGridRadioColumn()
 {
     try
     {
         _arrGroupColumn = new ArrayList();
         System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DataGridRadioColumn));
         this._RadioChecked  = new Bitmap((((System.Drawing.Image)(resources.GetObject("RadioChecked.Image")))));
         this._RadioNoChecked  = new Bitmap((((System.Drawing.Image)(resources.GetObject("RadioNoChecked.Image")))));
     }
     catch(Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
开发者ID:hieu292,项目名称:project-dms,代码行数:14,代码来源:DataGridRadioColumn.cs

示例9: 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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmSplash));
     this.tmrClose = new System.Windows.Forms.Timer(this.components);
     this.picSplash = new System.Windows.Forms.PictureBox();
     this.lblCopyright = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // tmrClose
     //
     this.tmrClose.Enabled = true;
     this.tmrClose.Interval = 2500;
     this.tmrClose.Tick += new System.EventHandler(this.tmrClose_Tick);
     //
     // picSplash
     //
     this.picSplash.Image = ((System.Drawing.Image)(resources.GetObject("picSplash.Image")));
     this.picSplash.Location = new System.Drawing.Point(0, 0);
     this.picSplash.Name = "picSplash";
     this.picSplash.Size = new System.Drawing.Size(448, 200);
     this.picSplash.TabIndex = 0;
     this.picSplash.TabStop = false;
     //
     // lblCopyright
     //
     this.lblCopyright.BackColor = System.Drawing.SystemColors.Window;
     this.lblCopyright.Location = new System.Drawing.Point(232, 168);
     this.lblCopyright.Name = "lblCopyright";
     this.lblCopyright.Size = new System.Drawing.Size(208, 24);
     this.lblCopyright.TabIndex = 2;
     this.lblCopyright.Text = "Kostas Stroggylos 2003-2004";
     this.lblCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label1
     //
     this.label1.BackColor = System.Drawing.Color.White;
     this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(161)));
     this.label1.Location = new System.Drawing.Point(144, 96);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(296, 23);
     this.label1.TabIndex = 6;
     this.label1.Text = "A.U.E.B. Distributed Web Crawling Project";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // frmSplash
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(448, 200);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.lblCopyright);
     this.Controls.Add(this.picSplash);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name = "frmSplash";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "frmSplash";
     this.ResumeLayout(false);
 }
开发者ID:modernist,项目名称:CrawlWave,代码行数:64,代码来源:frmSplash.cs

示例10: 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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(LayerTool));
     this.imageList = new System.Windows.Forms.ImageList(this.components);
     //
     // imageList
     //
     this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
     this.imageList.ImageSize = new System.Drawing.Size(16, 16);
     this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
     this.imageList.TransparentColor = System.Drawing.Color.Magenta;
     //
     // LayerTool
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.AutoScroll = true;
     this.ClientSize = new System.Drawing.Size(234, 166);
     this.ControlBox = false;
     this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "LayerTool";
     this.ShowInTaskbar = false;
     this.Text = "LayerTool";
     this.TopMost = true;
 }
开发者ID:zeromus,项目名称:maped3,代码行数:32,代码来源:LayerTool.cs

示例11: InitializeComponent

			private void InitializeComponent()
			{
				this.components = new System.ComponentModel.Container();
				System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormTestPxComboBox));
				this.PxComboBox1 = new GISA.Controls.PxComboBox();
				this.ImageList1 = new System.Windows.Forms.ImageList(this.components);
				this.SuspendLayout();
				//
				//PxComboBox1
				//
				this.PxComboBox1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
				this.PxComboBox1.Location = new System.Drawing.Point(72, 64);
				this.PxComboBox1.Name = "PxComboBox1";
				this.PxComboBox1.Size = new System.Drawing.Size(121, 21);
				this.PxComboBox1.TabIndex = 0;
				this.PxComboBox1.Text = "ComboBox1";
				//
				//ImageList1
				//
				this.ImageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
				this.ImageList1.ImageSize = new System.Drawing.Size(16, 18);
				this.ImageList1.ImageStream = (System.Windows.Forms.ImageListStreamer)(resources.GetObject("ImageList1.ImageStream"));
				this.ImageList1.TransparentColor = System.Drawing.Color.Fuchsia;
				//
				//FormTestPxComboBox
				//
				this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
				this.ClientSize = new System.Drawing.Size(292, 273);
				this.Controls.Add(this.PxComboBox1);
				this.Name = "FormTestPxComboBox";
				this.Text = "Form1";
				this.ResumeLayout(false);

			}
开发者ID:aureliopires,项目名称:gisa,代码行数:34,代码来源:FormTestPxComboBox.cs

示例12: InitializeComponent

		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmBackupDatabase));
			this.components = new System.ComponentModel.Container();
			this.ToolTip1 = new System.Windows.Forms.ToolTip(components);
			this.tmrBackup = new System.Windows.Forms.Timer(components);
			this.SuspendLayout();
			this.ToolTip1.Active = true;
			this.ControlBox = false;
			this.BackColor = System.Drawing.Color.FromArgb(255, 192, 192);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.ClientSize = new System.Drawing.Size(463, 95);
			this.Location = new System.Drawing.Point(3, 3);
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
			this.BackgroundImage = (System.Drawing.Image)resources.GetObject("frmBackupDatabase.BackgroundImage");
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Enabled = true;
			this.KeyPreview = false;
			this.Cursor = System.Windows.Forms.Cursors.Default;
			this.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.HelpButton = false;
			this.WindowState = System.Windows.Forms.FormWindowState.Normal;
			this.Name = "frmBackupDatabase";
			this.tmrBackup.Enabled = false;
			this.tmrBackup.Interval = 100;
			this.ResumeLayout(false);
			this.PerformLayout();
		}
开发者ID:nodoid,项目名称:PointOfSale,代码行数:32,代码来源:frmBackupDatabase.Designer.cs

示例13: ThreeStateButton

        public ThreeStateButton(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
            this.MinimumSize = new Size(15, 15);
            this.MaximumSize = new Size(15, 15);
            System.Resources.ResourceManager rm = new System.Resources.ResourceManager(this.GetType());
            redImg = (Bitmap)rm.GetObject("red");
            greenImg = (Bitmap)rm.GetObject("green");
            yellowImg = (Bitmap)rm.GetObject("yellow");
            //redImg = new Bitmap("red.bmp");
            //greenImg = new Bitmap("green.bmp");
            //yellowImg = new Bitmap("yellow.bmp");
            SetColor();
        }
开发者ID:wshanshan,项目名称:DDD,代码行数:16,代码来源:ThreeStateButton.cs

示例14: OnPageShown

        public override void OnPageShown()
        {
			if (EnvUtils.RunningOnWindows())
			{
				System.Resources.ResourceManager rm =
					new System.Resources.ResourceManager("GitUI.Properties.Resources",
								System.Reflection.Assembly.GetExecutingAssembly());

				// dummy request; for some strange reason the ResourceSets are not loaded untill after the first object request... bug?
				rm.GetObject("dummy");

				System.Resources.ResourceSet resourceSet = rm.GetResourceSet(System.Globalization.CultureInfo.CurrentUICulture, true, true);

				contextMenuStrip_SplitButton.Items.Clear();

				foreach (System.Collections.DictionaryEntry icon in resourceSet)
				{
					//add entry to toolstrip
					if (icon.Value.GetType() == typeof(Icon))
					{
						//contextMenuStrip_SplitButton.Items.Add(icon.Key.ToString(), (Image)((Icon)icon.Value).ToBitmap(), SplitButtonMenuItem_Click);
					}
					else if (icon.Value.GetType() == typeof(Bitmap))
					{
						contextMenuStrip_SplitButton.Items.Add(icon.Key.ToString(), (Image)icon.Value, SplitButtonMenuItem_Click);
					}
					//var aa = icon.Value.GetType();
				}

				resourceSet.Close();
				rm.ReleaseAllResources();
			}
        }
开发者ID:Carbenium,项目名称:gitextensions,代码行数:33,代码来源:ScriptsSettingsPage.cs

示例15: InitializeComponent

		/// <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(ResultsForm));
#if !__MonoCS__
			this.axWebBrowser1 = new AxSHDocVw.AxWebBrowser();
			((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).BeginInit();
			this.SuspendLayout();
			// 
			// axWebBrowser1
			// 
			this.axWebBrowser1.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right);
			this.axWebBrowser1.Enabled = true;
			this.axWebBrowser1.Location = new System.Drawing.Point(8, 8);
			this.axWebBrowser1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWebBrowser1.OcxState")));
			this.axWebBrowser1.Size = new System.Drawing.Size(352, 272);
			this.axWebBrowser1.TabIndex = 1;
			// 
			// ResultsForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(368, 286);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.axWebBrowser1});
			this.Name = "ResultsForm";
			this.Text = "ResultsForm";
			this.Load += new System.EventHandler(this.ResultsForm_Load);
			((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).EndInit();
			this.ResumeLayout(false);
#endif

		}
开发者ID:bitforks,项目名称:Font-Validator,代码行数:37,代码来源:ResultsForm.cs


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