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


C# Resources.ResourceManager类代码示例

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


System.Resources.ResourceManager类属于命名空间,在下文中一共展示了System.Resources.ResourceManager类的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: AboutBox

        public AboutBox()
        {
            InitializeComponent();
            loc = label1.Location;

            label1.Text = "";
            try
            {
                var rm = new System.Resources.ResourceManager("BizHawk.Client.EmuHawk.Properties.Resources", GetType().Assembly);
                sfx = new SoundPlayer(rm.GetStream("nothawk"));
                sfx.Play();
            }
            catch
            {
            }

            //panel1.Size = new System.Drawing.Size(1000, 1000);
            //pictureBox5.GetType().GetMethod("SetStyle", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.InvokeMethod).Invoke(pictureBox5, new object[] { ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint, true });
            pictureBox5.BackColor = Color.Transparent;
            pictureBox5.SendToBack();
            pictureBox3.BringToFront();
            pictureBox2.BringToFront();
            pictureBox1.BringToFront();
            pictureBox5.Visible = false;
        }
开发者ID:cas1993per,项目名称:bizhawk,代码行数:25,代码来源:AboutBox.cs

示例3: GetResource

 public static string GetResource(Type t, string name, string lang)
 {
     if (string.IsNullOrEmpty(name)) return string.Empty;
     System.Resources.ResourceManager rm = new System.Resources.ResourceManager(t);
     System.Resources.ResourceSet rs = rm.GetResourceSet(new System.Globalization.CultureInfo(lang), true, true);
     return rs.GetString(name);
 }
开发者ID:TaylorLi,项目名称:gettogether,代码行数:7,代码来源:MutiLanguage.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()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TrackerSubmitForm));
			this.label1 = new System.Windows.Forms.Label();
			this.webBrowser = new AxSHDocVw.AxWebBrowser();
			this.panel1 = new System.Windows.Forms.Panel();
			((System.ComponentModel.ISupportInitialize)(this.webBrowser)).BeginInit();
			this.panel1.SuspendLayout();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.label1.Location = new System.Drawing.Point(8, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(768, 24);
			this.label1.TabIndex = 0;
			this.label1.Text = "Please try to include any helpfull details you can offer, such as what you were d" +
				"oing when you encountered an error, steps to reproduce the error, upload screens" +
				"hots etc.";
			// 
			// webBrowser
			// 
			this.webBrowser.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.webBrowser.ContainingControl = this;
			this.webBrowser.Enabled = true;
			this.webBrowser.Location = new System.Drawing.Point(8, 40);
			this.webBrowser.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("webBrowser.OcxState")));
			this.webBrowser.Size = new System.Drawing.Size(768, 446);
			this.webBrowser.TabIndex = 4;
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.label1);
			this.panel1.Controls.Add(this.webBrowser);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(784, 494);
			this.panel1.TabIndex = 5;
			// 
			// TrackerSubmitForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(784, 494);
			this.Controls.Add(this.panel1);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Name = "TrackerSubmitForm";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Submit a new bug report";
			this.TopMost = true;
			this.Load += new System.EventHandler(this.TrackerSubmitForm_Load);
			((System.ComponentModel.ISupportInitialize)(this.webBrowser)).EndInit();
			this.panel1.ResumeLayout(false);
			this.ResumeLayout(false);

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

示例5: 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(ErrorDialogDetails));
			this.txtDetailsError = new System.Windows.Forms.TextBox();
			this.SuspendLayout();
			// 
			// txtDetailsError
			// 
			this.txtDetailsError.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtDetailsError.Location = new System.Drawing.Point(0, 0);
			this.txtDetailsError.MaxLength = 0;
			this.txtDetailsError.Multiline = true;
			this.txtDetailsError.Name = "txtDetailsError";
			this.txtDetailsError.ReadOnly = true;
			this.txtDetailsError.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txtDetailsError.Size = new System.Drawing.Size(492, 371);
			this.txtDetailsError.TabIndex = 0;
			this.txtDetailsError.Text = "";
			this.txtDetailsError.WordWrap = false;
			// 
			// ErrorDialogDetails
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(492, 371);
			this.Controls.Add(this.txtDetailsError);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Name = "ErrorDialogDetails";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Error Details";
			this.Load += new System.EventHandler(this.ErrorDialogDetails_Load);
			this.ResumeLayout(false);

		}
开发者ID:wsrf2009,项目名称:KnxUiEditor,代码行数:38,代码来源:ErrorDialogDetails.cs

示例6: Initialize

        // Initialize this extension. We can only initialize global (non-process specific) state right now
        // since we may not have an active process.
        // However, we can subscribe to the ProcessAdded event to register per-process state.
        public static void Initialize()
        {
            g_rm = new System.Resources.ResourceManager("mdbgCommands", System.Reflection.Assembly.GetExecutingAssembly());
            MDbgAttributeDefinedCommand.AddCommandsFromType(Shell.Commands, typeof(MdbgCommands));

            g_lastSavedRunCommand = null;
            g_threadNickNames = new ThreadNickNames();
            SymbolCache = new MDbgSymbolCache();
            m_events = new ArrayList();
            m_loadedExtensions = new Dictionary<string, bool>();

            // initialization of various properties
            InitModeShellProperty();
            InitStopOptionsProperty();

            Debug.Assert(Shell.Debugger != null);

            // Install our default breakpoint parser.
            if (Shell.BreakpointParser == null)
            {
                Shell.BreakpointParser = new DefaultBreakpointParser();
            }
            if (Shell.ExpressionParser == null)
            {
                Shell.ExpressionParser = new DefaultExpressionParser();
            }

            // We could subscribe to process-specific event handlers via the the Shell.Debugger.Processes.ProcessAdded event.
            Shell.Debugger.Processes.ProcessAdded += new ProcessCollectionChangedEventHandler(Processes_ProcessAdded);
        }
开发者ID:finalpatch,项目名称:mdbg4emacs,代码行数:33,代码来源:mdbgCommands.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()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TransparencyDialog));
       this.MyTransparency = new System.Windows.Forms.NumericUpDown();
       ((System.ComponentModel.ISupportInitialize)(this.MyTransparency)).BeginInit();
       this.SuspendLayout();
       //
       // MyTransparency
       //
       this.MyTransparency.Location = new System.Drawing.Point(16, 16);
       this.MyTransparency.Maximum = new System.Decimal(new int[] {
                                                                    10,
                                                                    0,
                                                                    0,
                                                                    0});
       this.MyTransparency.Name = "MyTransparency";
       this.MyTransparency.Size = new System.Drawing.Size(96, 20);
       this.MyTransparency.TabIndex = 0;
       this.MyTransparency.ValueChanged += new System.EventHandler(this.MyTransparency_ValueChanged);
       //
       // TransparencyDialog
       //
       this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
       this.ClientSize = new System.Drawing.Size(128, 53);
       this.Controls.Add(this.MyTransparency);
       this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
       this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
       this.MaximizeBox = false;
       this.MinimizeBox = false;
       this.Name = "TransparencyDialog";
       this.Text = "TransparencyDialog";
       ((System.ComponentModel.ISupportInitialize)(this.MyTransparency)).EndInit();
       this.ResumeLayout(false);
 }
开发者ID:i2e-haw-hamburg,项目名称:opencascade,代码行数:38,代码来源:TransparencyDialog.cs

示例8: AboutBox

        public AboutBox()
        {
            //
            // Windows �t�H�[�� �f�U�C�i �T�|�[�g�ɕK�v�ł��B
            //
            InitializeComponent();

            this.Text = GApp.Strings.GetString("Form.AboutBox.Text");
            _okButton.Text = GApp.Strings.GetString("Common.OK");
            _creditButton.Text = GApp.Strings.GetString("Form.AboutBox._creditButton");
            _guevaraMode = GApp.Options.GuevaraMode;

            //Guevara Mode
            if(_guevaraMode) {
                System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AboutBox));
                this._creditButton.Visible = false;
                this._okButton.Location = new System.Drawing.Point(160, 216);
                this._versionText.BackColor = System.Drawing.Color.White;
                this._versionText.Location = new System.Drawing.Point(152, 8);
                this._pictureBox.Visible = false;
                this._guevaraPicture.Visible = true;
                this._guevaraPicture.Location = new Point(0,8);
                this._guevaraPicture.Size = new Size(280, 200);
                this.BackColor = System.Drawing.Color.White;
                this.ClientSize = new System.Drawing.Size(418, 240);
            }
        }
开发者ID:rfyiamcool,项目名称:solrex,代码行数:27,代码来源:AboutBox.cs

示例9: OrbitsNet

        public OrbitsNet()
        {
            InitializeComponent();
            this.recursos = new System.Resources.ResourceManager("OrbitsNet.Properties.Resources", this.GetType().Assembly);
            this.cultura = new System.Globalization.CultureInfo(System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName.ToUpper());
            this.configureLanguage();
            this.fillHash();
            this.selectedFilesForDownload = new List<string>();
            this.loadedFiles = new List<string>();

            this.loadedTles = new List<FileAndTle>();
            this.selectedTles = new List<Tle>();
            this.processedTles = new List<OrbitsElement>();

            this.resetCartChart();
            this.resetPolarchart();
            this.resetMapChart();

            this.loadWorker = new BackgroundWorker();
            this.loadWorker.WorkerSupportsCancellation = true;
            this.loadWorker.WorkerReportsProgress = true;
            this.loadWorker.DoWork += loadWorker_DoWork;
            this.loadWorker.ProgressChanged += loadWorker_ProgressChanged;
            this.loadWorker.RunWorkerCompleted += loadWorker_RunWorkerCompleted;

            this.plotWorker = new BackgroundWorker();
            this.plotWorker.WorkerSupportsCancellation = true;
            this.plotWorker.WorkerReportsProgress = true;
            this.plotWorker.DoWork += plotWorker_DoWork;
            this.plotWorker.ProgressChanged += plotWorker_ProgressChanged;
            this.plotWorker.RunWorkerCompleted += plotWorker_RunWorkerCompleted;

            this.configureDefault();
        }
开发者ID:neur0nid,项目名称:OrbitsNet,代码行数:34,代码来源:OrbitsNet.cs

示例10: DisplayNoMatches

 public void DisplayNoMatches()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(NoiFolderMessage));
        this.richTextBox2.Text = resources.GetString("richTextBox2.NoMatchesText");
        this.richTextBox3.Visible = this.richTextBox4.Visible = false;
        this.pictureBox1.Visible = this.pictureBox2.Visible = false;
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:7,代码来源:NoiFolderMessage.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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DlgInitProgress));
     this.progressBar = new System.Windows.Forms.ProgressBar();
     this.SuspendLayout();
     //
     // progressBar
     //
     this.progressBar.Location = new System.Drawing.Point(12, 38);
     this.progressBar.Name = "progressBar";
     this.progressBar.Size = new System.Drawing.Size(328, 24);
     this.progressBar.TabIndex = 3;
     //
     // DlgInitProgress
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(352, 101);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                   this.progressBar});
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "DlgInitProgress";
     this.ShowInTaskbar = false;
     this.Text = "Initializing New Language.  Please Wait...";
     this.ResumeLayout(false);
 }
开发者ID:sillsdev,项目名称:CarlaLegacy,代码行数:31,代码来源:DlgInitProgress.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: Exists

        public static bool Exists(string path)
        {
            if (string.IsNullOrEmpty(path) || path.Length <= _resourceFilePrefix.Length)
                return false;
            path = path.Substring(_resourceFilePrefix.Length).ToLower();
            if(_resourcePath==null)
            {
                _resourcePath = new Dictionary<string, string>();
                var culture = System.Threading.Thread.CurrentThread.CurrentCulture;
                var assembly = System.Reflection.Assembly.GetExecutingAssembly();
                var resourceName = assembly.GetName().Name + ".g";
                var resourceManager = new System.Resources.ResourceManager(resourceName, assembly);
                try
                {
                    var resourceSet = resourceManager.GetResourceSet(culture, true, true);
                    foreach (System.Collections.DictionaryEntry resource in resourceSet)
                    {
                        _resourcePath.Add(resource.Key.ToString(), "");
                    }
                }
                finally
                {
                    resourceManager.ReleaseAllResources();
                }
            }

            return _resourcePath.ContainsKey(path);
        }
开发者ID:SpiderLoveFish,项目名称:GB_Order,代码行数:28,代码来源:ResourceFile.cs

示例14: 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(WizardWorkPage));
			this._infoPanel = new Razor.InformationPanel();
			this.SuspendLayout();
			// 
			// _infoPanel
			// 
			this._infoPanel.BackColor = System.Drawing.Color.White;
			this._infoPanel.Description = "";
			this._infoPanel.Dock = System.Windows.Forms.DockStyle.Top;
			this._infoPanel.Image = ((System.Drawing.Image)(resources.GetObject("_infoPanel.Image")));
			this._infoPanel.Location = new System.Drawing.Point(0, 0);
			this._infoPanel.Name = "_infoPanel";
			this._infoPanel.Size = new System.Drawing.Size(502, 85);
			this._infoPanel.TabIndex = 0;
			this._infoPanel.Title = "";
			// 
			// WizardWorkPage
			// 
			this.Controls.Add(this._infoPanel);
			this.Name = "WizardWorkPage";
			this.Size = new System.Drawing.Size(502, 311);
			this.ResumeLayout(false);

		}
开发者ID:FireBall1725,项目名称:Razor.Framework,代码行数:30,代码来源:WizardWorkPage.cs

示例15: VerifyPassphraseDialog

 public VerifyPassphraseDialog(string domainID, SimiasWebService simws)
 {
     this.DomainID = domainID;
        this.simws = simws;
        this.resManager = new System.Resources.ResourceManager(typeof(VerifyPassphraseDialog));
        InitializeComponent();
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:7,代码来源:VerifyPassphraseDialog.cs


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