Пример #1
0
 string IPropertyGridLocalizer.GetErrorTooltipMessage(string message)
 {
     LocalizeEventHandler handler = Localize;
     if (handler != null)
     {
         AdvPropertyGridLocalizeEventArgs e = new AdvPropertyGridLocalizeEventArgs("ErrorBody", ePropertyGridLocalizationType.ErrorTooltip);
         e.LocalizedValue = message;
         handler(this, e);
         return e.LocalizedValue;
     }
     return message;
 }
Пример #2
0
        string IPropertyGridLocalizer.GetCategoryName(string categoryName)
        {
            LocalizeEventHandler handler = Localize;
            if (handler != null)
            {
                AdvPropertyGridLocalizeEventArgs e = new AdvPropertyGridLocalizeEventArgs(categoryName, ePropertyGridLocalizationType.Category);
                handler(this, e);
                return e.LocalizedValue;
            }
            return null;

        }