Exemplo n.º 1
0
        public override void OnResuming(IScreen last)
        {
            base.OnResuming(last);

            this.MoveToX(0, 1000, Easing.InOutQuart);
            loginOverlay.Reset();
            registerOverlay.Reset();
            loginOverlay.Hide();
            registerOverlay.Hide();
        }
Exemplo n.º 2
0
        private void UpdateCurrentUser(UserInfo e)
        {
            if (InvokeRequired)
            {
                Invoke(new MethodInvoker(() => { UpdateCurrentUser(e); }));
                return;
            }

            currentUser = e;

            UserName.Text     = CurrentUser.UserName;
            UserPicture.Image = CurrentUser.UserImage.DownloadImage(UserPicture.Size);

            ViewProfileButton.Show();
            LoginOverlay.Hide();

            if (RecipientUser == null)
            {
                ChatMessage.Text = PreDefinedMessage["SelectChat"];
            }
            else
            {
                ChatMessage.Text = PreDefinedMessage["TypeRecipient"];
            }
        }