public override void ViewDidAppear(bool animated) { base.ViewDidAppear(animated); profileHeader = ProfileHeaderView.Create(); profileHeader.Frame = new CGRect(0, 0, View.Frame.Width, defaultHeaderHeight); TableView.AddSubview(profileHeader); TableView.ContentInset = new UIEdgeInsets(defaultHeaderHeight, 0, 0, 0); TableView.BackgroundColor = Helpers.Style.Colors.Grey; UpdateHeaderView(); var dataSource = new AccountDataSource(); TableView.Source = dataSource; var deleg = new AccountDelegate(); deleg.DidScroll += UpdateHeaderView; TableView.Delegate = deleg; }
public void RegisterDeligate(AccountDelegate a) { this.account_delegate = a; }
private MessageDispatcher() { accountDelegate += AccountController.Instance.OnMessageResponse; }