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;
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 public void RegisterDeligate(AccountDelegate a)
 {
     this.account_delegate = a;
 }
Esempio n. 4
0
    private MessageDispatcher()
    {
		accountDelegate += AccountController.Instance.OnMessageResponse;
    }