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
66 lines
1.6 KiB
using System;
|
|
using System.Resources;
|
|
using System.ComponentModel;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace OT.Controls.DataPager
|
|
{
|
|
|
|
#region Custom Attributes
|
|
internal sealed class SR
|
|
{
|
|
//private SR()
|
|
//{
|
|
// _rm = new ResourceManager("Wuqi.Webdiyer.AspNetPager", GetType().Assembly);
|
|
//}
|
|
|
|
//private ResourceManager Resources
|
|
//{
|
|
// get { return _rm; }
|
|
//}
|
|
|
|
//private ResourceManager _rm;
|
|
|
|
|
|
//private static SR GetLoader()
|
|
//{
|
|
// if (null == _loader)
|
|
// {
|
|
// lock (_lock)
|
|
// {
|
|
// if (null == _loader)
|
|
// _loader = new SR();
|
|
// }
|
|
// }
|
|
// return _loader;
|
|
//}
|
|
|
|
//public static string GetString(string name)
|
|
//{
|
|
// //SR loader = GetLoader();
|
|
// //string localized = null;
|
|
// //if (null != loader)
|
|
// // localized = loader.Resources.GetString(name, null);
|
|
// return name;//localized;
|
|
//}
|
|
|
|
//private static SR _loader = null;
|
|
|
|
//private static object _lock = new object();
|
|
}
|
|
|
|
/// <summary>
|
|
/// AspNetPager type converter used for the design time support
|
|
/// </summary>
|
|
internal class AspNetPagerIDConverter : ControlIDConverter
|
|
{
|
|
protected override bool FilterControl(Control control)
|
|
{
|
|
if (control is Pager)
|
|
return true;
|
|
return false;
|
|
}
|
|
}
|
|
#endregion
|
|
}
|