コード例 #1
0
        void LoadDetail(object dataKey, string secondKey = null)
        {
            ResetViews();
            pnlBreadcrumb.Visible = true;
            mvUrlTracker.SetActiveView(vwUrlTrackerDetail);

            if (secondKey == null)
            {
                UrlTrackerModel = UrlTrackerRepository.GetUrlTrackerEntryById((int)dataKey, false);
            }
            else if (dataKey is int && !string.IsNullOrEmpty(secondKey))
            {
                UrlTrackerModel = UrlTrackerRepository.GetNotFoundEntryByRootAndUrl((int)dataKey, secondKey, false);
            }
            lbSwitchToNormalView_Click(this, EventArgs.Empty);
        }
コード例 #2
0
        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);
        }