Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
815 B

  1. using System;
  2. using System.Globalization;
  3. using System.Resources;
  4. using System.Threading;
  5. using System.Web;
  6. using System.Web.UI;
  7. using UDDI.Diagnostics;
  8. using UDDI;
  9. namespace UDDI.Web
  10. {
  11. public class StringResource : UserControl
  12. {
  13. protected string name;
  14. public StringResource()
  15. {
  16. }
  17. public string Name
  18. {
  19. get { return name; }
  20. set { name = value; }
  21. }
  22. protected override void Render( HtmlTextWriter output )
  23. {
  24. output.Write( Localization.GetString( name ) );
  25. }
  26. }
  27. public class LocalizedLabel : System.Web.UI.WebControls.Label
  28. {
  29. protected string name;
  30. public LocalizedLabel()
  31. {
  32. }
  33. public string Name
  34. {
  35. get { return name; }
  36. set
  37. {
  38. name = value;
  39. base.Text = Localization.GetString( name );
  40. }
  41. }
  42. }
  43. }