Beispiel #1
0
 /// <summary>
 ///     Dispose, logout the users
 /// </summary>
 public void Dispose()
 {
     if (_jiraClient != null)
     {
         Task.Run(async() => await LogoutAsync()).Wait();
     }
     FavIcon?.Dispose();
 }
        private void ManageFavicon()
        {
            string headerLink = FavIcon.GetHeaderLink(PortalSettings.PortalId);

            if (!String.IsNullOrEmpty(headerLink))
            {
                Page.Header.Controls.Add(new Literal {
                    Text = headerLink
                });
            }
        }
        private async void Ring_Tabbed(object sender, EventArgs e)
        {
            MessageViewModel.Messages = await MessageViewModel.GetMessage(currentUser);


            RingTitle.TextColor = Xamarin.Forms.Color.FromHex("#84C5CB");
            FavTitle.TextColor  = Xamarin.Forms.Color.FromHex("#95a5a6");
            await RingIcon.ScaleTo(0, 150);

            RingIcon.Source = "bell.png";
            await RingIcon.ScaleTo(1, 150);

            if (FavTab)
            {
                await FavIcon.ScaleTo(0, 150);

                FavIcon.Source = "star.png";
                await FavIcon.ScaleTo(1, 150);

                FavTab = false;
            }
        }