void LoadDetail(object dataKey) { ResetViews(); pnlBreadcrumb.Visible = true; mvUrlTracker.SetActiveView(vwUrlTrackerDetail); if (dataKey is int) { UrlTrackerModel = UrlTrackerRepository.GetUrlTrackerEntryById((int)dataKey); } else if (dataKey is string) { UrlTrackerModel = UrlTrackerRepository.GetNotFoundEntryByUrl((string)dataKey); } lbSwitchToNormalView_Click(this, EventArgs.Empty); }