namespace Mobile.Web.Control
public abstract class RichardIsAFuckingIdiotControl : MobileBaseControl, ICompanyProfileControl
protected abstract Pager Pager { get; }
public void BindCompany(int companyId) { }
public RichardIsAFuckingIdiotControl()
MakeSureNobodyAccidentallyGetsBittenByRichardsStupidity();
private void MakeSureNobodyAccidentallyGetsBittenByRichardsStupidity()
MethodInfo m = this.GetType().GetMethod("BindCompany", BindingFlags.DeclaredOnly |
BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
throw new RichardIsAFuckingIdiotException("No!! Don't use the fucking BindCompany method!!!");
protected bool IsThisTheRightPageImNotSureBecauseRichardIsDumb()
return Request.QueryString["Section"] == this.MenuItemKey;
protected override void OnLoad(EventArgs e)
if (IsThisTheRightPageImNotSureBecauseRichardIsDumb())
Page.LoadComplete += new EventHandler(Page_LoadComplete);
Pager.RowCount = GetRowCountBecauseRichardIsDumb();
protected abstract int GetRowCountBecauseRichardIsDumb();
protected abstract void BindDataBecauseRichardIsDumb();
void Page_LoadComplete(object sender, EventArgs e)
BindDataBecauseRichardIsDumb();
public abstract string MenuItemName { get; set; }
public abstract string MenuItemKey { get; set; }
public abstract bool IsCapable(CapabilityCheck checker, int companyId);
public abstract bool ShowInMenu { get; }
public virtual Control CreateHeaderControl()