TexeL

Untitled

Oct 9th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1.     void GetSearchDataFromDB(string myStr)
  2.     {
  3.         var strList = new List<CompanyData>();
  4.  
  5.         Observable.Start(() =>
  6.         {
  7.             strList = dbBridge.GetCompaniesWith(myStr).ToList();
  8.         }).Subscribe(x =>
  9.         {
  10.             Debug.Log("Done");
  11.             SetSearchItemsList(strList);
  12.         });        
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment