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

C# Resources.ResourceManager类代码示例

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

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



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


示例16: InitializeComponent

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ContentBrowser));
			this.axWebBrowser1 = new AxSHDocVw.AxWebBrowser();
			((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).BeginInit();
			this.SuspendLayout();
			// 
			// axWebBrowser1
			// 
			this.axWebBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.axWebBrowser1.Enabled = true;
			this.axWebBrowser1.Location = new System.Drawing.Point(0, 0);
			this.axWebBrowser1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWebBrowser1.OcxState")));
			this.axWebBrowser1.Size = new System.Drawing.Size(328, 298);
			this.axWebBrowser1.TabIndex = 0;
			this.axWebBrowser1.Enter += new System.EventHandler(this.axWebBrowser1_Enter);
			// 
			// WebForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(328, 298);
			this.Controls.Add(this.axWebBrowser1);
			this.Name = "WebForm";
			this.Text = "Content Browser";
			((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).EndInit();
			this.ResumeLayout(false);

		}
开发者ID:Wiladams,项目名称:NewTOAPIA,代码行数:32,代码来源:ContentBrowser.cs


示例17: 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


示例18: InitializeComponent

 /// <summary> 
 /// �����֧������ķ��� - ��Ҫʹ�ô���༭�� 
 /// �޸Ĵ˷��������ݡ�
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MapControl));
     this.tlVectorControl1 = new ItopVector.ItopVectorControl();
     this.SuspendLayout();
     //
     // tlVectorControl1
     //
     this.tlVectorControl1.CanEdit = false;
     this.tlVectorControl1.DocumentbgColor = System.Drawing.Color.Empty;
     this.tlVectorControl1.DocumentSize = ((System.Drawing.SizeF)(resources.GetObject("tlVectorControl1.DocumentSize")));
     this.tlVectorControl1.FullDrawMode = false;
     this.tlVectorControl1.IsModified = false;
     this.tlVectorControl1.IsPasteGrid = false;
     this.tlVectorControl1.IsShowGrid = true;
     this.tlVectorControl1.IsShowRule = true;
     this.tlVectorControl1.IsShowTip = false;
     this.tlVectorControl1.Location = new System.Drawing.Point(0, 0);
     this.tlVectorControl1.Name = "tlVectorControl1";
     this.tlVectorControl1.ScaleRatio = 1F;
     this.tlVectorControl1.Scrollable = false;
     this.tlVectorControl1.Size = new System.Drawing.Size(672, 496);
     this.tlVectorControl1.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.tlVectorControl1.TabIndex = 0;
     //
     // MapControl
     //
     this.Controls.Add(this.tlVectorControl1);
     this.Name = "MapControl";
     this.Size = new System.Drawing.Size(480, 368);
     this.ResumeLayout(false);
 }
开发者ID:EdgarEDT,项目名称:myitoppsp,代码行数:36,代码来源:MapControl.cs


示例19: InitializeComponent

 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ReportsForm));
     this.CrystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
     this.SuspendLayout();
     //
     //CrystalReportViewer1
     //
     this.CrystalReportViewer1.ActiveViewIndex = - 1;
     this.CrystalReportViewer1.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.CrystalReportViewer1.Location = new System.Drawing.Point(8, 8);
     this.CrystalReportViewer1.Name = "CrystalReportViewer1";
     this.CrystalReportViewer1.ReportSource = null;
     this.CrystalReportViewer1.Size = new System.Drawing.Size(1000, 520);
     this.CrystalReportViewer1.TabIndex = 0;
     //
     //frmReports
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(1012, 533);
     this.Controls.Add(this.CrystalReportViewer1);
     this.Icon = (System.Drawing.Icon) resources.GetObject("$this.Icon");
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "frmReports";
     this.ShowInTaskbar = false;
     this.Text = "Backflow Testing Reporting";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.ResumeLayout(false);
 }
开发者ID:niucons,项目名称:backflow,代码行数:30,代码来源:ReportsForm.cs


示例20: 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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# ComTypes.IConnectionPoint类代码示例发布时间:2022-05-24
下一篇:
C# Reflection.MethodInfo类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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