hMailServer.Administrator.Strings.Localize C# (CSharp) Method

Localize() public static method

public static Localize ( string text ) : string
text string
return string
        public static string Localize(string text)
        {
            return Translate(text);
        }

Same methods

Strings::Localize ( ColumnHeader header ) : void
Strings::Localize ( Control container ) : void
Strings::Localize ( ToolStripItem tsItem ) : void
Strings::Localize ( ToolStripItemCollection tsColl ) : void
Strings::Localize ( TreeNode node ) : void

Usage Example

Exemplo n.º 1
0
        public ucIPRange(int securityRangeID)
        {
            InitializeComponent();

            if (securityRangeID > 0)
            {
                hMailServer.SecurityRanges securityRanges = APICreator.SecurityRanges;

                try
                {
                    _representedObject = securityRanges.get_ItemByDBID(securityRangeID);
                }
                catch (Exception)
                {
                    MessageBox.Show(Strings.Localize("The IP range does not exist."), EnumStrings.hMailServerAdministrator, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

                    this.Enabled = false;
                }

                Marshal.ReleaseComObject(securityRanges);
            }

            DirtyChecker.SubscribeToChange(this, OnContentChanged);
            new TabOrderManager(this).SetTabOrder(TabOrderManager.TabScheme.AcrossFirst);
            dateTimeExpiresTime.Value = DateTime.Now;

            EnableDisable();
        }
All Usage Examples Of hMailServer.Administrator.Strings::Localize