Exemplo n.º 1
0
        public async Task SendSearchQueryAsync(string query)
        {
            int resultLimit = PreferenceManager.GetSearchResultLimit();

            string address = String.Format(Strings.formatSearchURL, query, resultLimit, Strings.youtubeDeveloperKey);
            string result  = await StringDownloader.GetString(address);

            Log.D(Strings.Tags.MAIN_FORM, "Query  : " + query);

            SearchResultForm resultForm = new SearchResultForm();

            resultForm.SetQuery(HttpUtility.UrlDecode(query));
            resultForm.SetResultJSON(result);
            resultForm.SetDownloadCompletionContext(this);
            resultForm.ShowDialog();
        }
Exemplo n.º 2
0
        public static List <Classes.User> getUserRequestInfo(int userid, SearchResultForm srf)
        {
            DataClasses1DataContext cntx = ToLet.Database.DBConnectionProvider.getDBConnection();


            var k = (from p in cntx.UserInfos
                     join c in cntx.Users
                     on p.UserId equals c.UserId
                     where p.UserId == userid
                     select new Classes.User
            {
                FirstName = p.First_Name,
                LastName = p.Last_Name,
                MobileNo = p.MobileNo,
                NidNo = p.Nid_No,
                Email = p.Email,
                Address = p.Address,
                DOB = p.Date_of_Birth,
                UserName = c.UserName
            }).ToList();

            return(k);
        }