System.Resources.ResourceManager.GetString C# (CSharp) Méthode

GetString() public méthode

public GetString ( string name ) : string
name string
Résultat string
        public string GetString(string name)
        {
            return GetString(name, null);
        }

Same methods

ResourceManager::GetString ( string name, CultureInfo culture ) : string

Usage Example

        public BasicAuthenticationCtrl()
        {
            try
            {
                this.Font = SystemFonts.MessageBoxFont;
                InitializeComponent();

                resourceManager = new ResourceManager("ESRI.ArcGIS.OSM.Editor.OSMFeatureInspectorStrings", this.GetType().Assembly);

                lblUserName.Text = resourceManager.GetString("OSMEditor_Authentication_UI_labelusername");
                lblPassword.Text = resourceManager.GetString("OSMEditor_Authentication_UI_labelpassword");

                txtUserName.LostFocus += new EventHandler(txtUserName_LostFocus);
                txtUserName.Refresh();
                txtPassword.LostFocus += new EventHandler(txtPassword_LostFocus);
                txtPassword.Refresh();

                m_password = String.Empty;
                m_username = String.Empty;

                this.Refresh();
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.Message);
                System.Diagnostics.Debug.WriteLine(ex.StackTrace);
            }
        }
All Usage Examples Of System.Resources.ResourceManager::GetString