示例#1
0
 public FriendSearch(string search)
 {
     InitializeComponent();
     nameResultLabel.Text = search;
     user         = MainView.user;
     proxy        = MainView.proxy;
     user         = proxy.GetUserById(user.ID);
     searchList   = proxy.SearchUsers(search, user.ID);
     nameBtn.Text = user.firstName;
     result       = new FriendSearchResult(this, resultsPanel, user.ID, searchList, proxy, search);
     result.AddResults();
 }