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.

66 lines
1.6 KiB

  1. using System;
  2. using System.Resources;
  3. using System.ComponentModel;
  4. using System.Web.UI;
  5. using System.Web.UI.WebControls;
  6. namespace OT.Controls.DataPager
  7. {
  8. #region Custom Attributes
  9. internal sealed class SR
  10. {
  11. //private SR()
  12. //{
  13. // _rm = new ResourceManager("Wuqi.Webdiyer.AspNetPager", GetType().Assembly);
  14. //}
  15. //private ResourceManager Resources
  16. //{
  17. // get { return _rm; }
  18. //}
  19. //private ResourceManager _rm;
  20. //private static SR GetLoader()
  21. //{
  22. // if (null == _loader)
  23. // {
  24. // lock (_lock)
  25. // {
  26. // if (null == _loader)
  27. // _loader = new SR();
  28. // }
  29. // }
  30. // return _loader;
  31. //}
  32. //public static string GetString(string name)
  33. //{
  34. // //SR loader = GetLoader();
  35. // //string localized = null;
  36. // //if (null != loader)
  37. // // localized = loader.Resources.GetString(name, null);
  38. // return name;//localized;
  39. //}
  40. //private static SR _loader = null;
  41. //private static object _lock = new object();
  42. }
  43. /// <summary>
  44. /// AspNetPager type converter used for the design time support
  45. /// </summary>
  46. internal class AspNetPagerIDConverter : ControlIDConverter
  47. {
  48. protected override bool FilterControl(Control control)
  49. {
  50. if (control is Pager)
  51. return true;
  52. return false;
  53. }
  54. }
  55. #endregion
  56. }