public override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     presenter = new UserProfilePresenter()
     {
         View = this
     };
 }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _usersession   = new UserSession();
            _ac            = new AccountRepository();
            _pr            = new UserProfilePresenter();
            _statusService = new SPKTCore.Core.Impl.StatusUpdateService();
            Friendship1.setidac(acid);
            com1.setidac(acid);

            // add.setidac(acid);
            mess1.setidac(acid);
            load();
            com1.setidst(idst);
            //mess1.setidac(Int32.Parse(Label3.Text));
        }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FrmXtraChangePassword"/> class.
 /// </summary>
 public FrmXtraChangePassword()
 {
     InitializeComponent();
     _userProfilePresenter = new UserProfilePresenter(null);
 }
Пример #4
0
 protected override void OnInit(EventArgs e)
 {
     _presenter = new UserProfilePresenter();
     _presenter.Init(this, IsPostBack);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FrmUserProfileDetail"/> class.
 /// </summary>
 public FrmUserProfileDetail()
 {
     InitializeComponent();
     _userProfilePresenter = new UserProfilePresenter(this);
 }
Пример #6
0
        public MainTabBarController()
        {
            TabBar.Translucent = false;
            TabBar.TintColor   = Constants.R231G72B0;

            var feedTab = new InteractivePopNavigationController(new FeedViewController());

            feedTab.TabBarItem = new UITabBarItem(null, UIImage.FromBundle("ic_home"), 0);

            var browseTab = new InteractivePopNavigationController(new PreSearchViewController());

            browseTab.TabBarItem = new UITabBarItem(null, UIImage.FromBundle("ic_browse"), 1);

            var photoTab = new UIViewController()
            {
            };

            photoTab.TabBarItem = new UITabBarItem(null, null, 2);

            var profileTab = new InteractivePopNavigationController(new ProfileViewController());

            profileTab.TabBarItem = new UITabBarItem(null, null, 3);

            ViewControllers = new UIViewController[] {
                feedTab,
                browseTab,
                photoTab,
                profileTab
            };

            var insets = new UIEdgeInsets(5, 0, -5, 0);

            foreach (UIViewController item in ViewControllers)
            {
                if (item is UINavigationController navController)
                {
                    navController.NavigationBar.Translucent = false;
                }
                item.TabBarItem.ImageInsets = insets;
            }

            var createPhotoImage = new UIImageView(new CGRect(0, -2, TabBar.Frame.Width / 4, TabBar.Frame.Height));

            createPhotoImage.Image       = UIImage.FromBundle("ic_create");
            createPhotoImage.ContentMode = UIViewContentMode.Center;
            TabBar.Subviews[2].AddSubview(createPhotoImage);

            _avatar     = new UIImageView();
            _powerFrame = new CircleFrame(_avatar, new CGRect(TabBar.Frame.Width / 4 / 2 - 16, TabBar.Frame.Height / 2 - 17, 28, 28));

            _powerFrame.UserInteractionEnabled = false;
            _avatar.UserInteractionEnabled     = false;
            _avatar.Frame = new CGRect(3, 3, 22, 22);
            _avatar.Layer.CornerRadius = _avatar.Frame.Width / 2;
            _avatar.ClipsToBounds      = true;
            _avatar.Image       = UIImage.FromBundle("ic_noavatar");
            _avatar.ContentMode = UIViewContentMode.ScaleAspectFill;

            _presenter = new UserProfilePresenter()
            {
                UserName = AppSettings.User.Login
            };

            TabBar.Subviews[3].AddSubview(_powerFrame);
            InitializePowerFrame();
            if (AppSettings.AppInfo.GetModel() != "Simulator")
            {
                InitPushes();
            }
        }
Пример #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     _presenter = new UserProfilePresenter();
     _presenter.Init(this, IsPostBack);
 }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FrmLogin"/> class.
 /// </summary>
 public FrmLogin()
 {
     InitializeComponent();
     _userProfilePresenter  = new UserProfilePresenter(this);
     _audittingLogPresenter = new AudittingLogPresenter(this);
 }
 public UserProfile()
 {
     presenter = new UserProfilePresenter(this);
 }