コード例 #1
0
ファイル: Search.aspx.cs プロジェクト: haimon74/Easy-Fixup
        private void ShowFriendsConnection(string viewer, string viewed)
        {
            pnlQuickSearch.Visible = false;
            pnlCustomSearch.Visible = false;
            pnlSearchResults.Visible = true;
            pnlDistanceSearch.Visible = false;
            pnlFilterOnline.Visible = false;

            var search = new FriendsConnectionSearch { Viewer = viewer, Viewed = viewed };
            UserSearchResults results = search.GetResults();

            SearchResults.ShowFriendsPath = true;
            SearchResults.ShowLastOnline = true;
            SearchResults.ShowViewedOn = false;
            SearchResults.ShowDistance = true;

            SearchResults.Results = results;
        }
コード例 #2
0
ファイル: Search2.aspx.cs プロジェクト: varlo/Unona9
        private void ShowFriendsConnection(string viewer, string viewed)
        {
            var search = new FriendsConnectionSearch { Viewer = viewer, Viewed = viewed };
            UserSearchResults results = search.GetResults();

            SearchResults.ShowFriendsPath = true;
            SearchResults.ShowLastOnline = true;
            SearchResults.ShowViewedOn = false;
            SearchResults.ShowDistance = true;
            SearchResults.GridMode = false;

            SearchResults.Results = results;
        }