#pragma warning restore 0649 public override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); if (_searchFacade == null) { var client = App.MainChain == KnownChains.Steem ? App.SteemClient : App.GolosClient; _searchFacade = new SearchFacade(); _searchFacade.SetClient(client); } }
public override void ViewDidLoad() { base.ViewDidLoad(); CreateView(); var client = AppDelegate.MainChain == KnownChains.Steem ? AppDelegate.SteemClient : AppDelegate.GolosClient; _searchFacade = new SearchFacade(); _searchFacade.SetClient(client); _timer = new Timer(OnTimer); SetupTables(); _searchFacade.UserFriendPresenter.SourceChanged += UserFriendPresenterSourceChanged; _searchFacade.TagsPresenter.SourceChanged += TagsPresenterSourceChanged; searchTextField.EditingChanged += EditingChanged; tagsButton.TouchDown += TagsButtonTap; peopleButton.TouchDown += PeopleButtonTap; SwitchSearchType(false); SetBackButton(); }