示例#1
0
        void Collections_Loaded(object sender, RoutedEventArgs e)
        {
            //suspenseSound.Play();
            this.BackgroundImage.ImageSource = new System.Windows.Media.Imaging.BitmapImage(new Uri(string.Format("/Images/{0}", _item.BackgroundImage), UriKind.RelativeOrAbsolute));

            myTimer          = new DispatcherTimer();
            myTimer.Interval = TimeSpan.FromMilliseconds(1000); // 1 second
            myTimer.Tick    += myTimer_Tick;
            myTimer.Start();

            this.StartStoryBoard.Begin();

            collectionRequests.GetCollectionItemsByEarthwatcher(Current.Instance.Earthwatcher.Id);
        }
示例#2
0
        void UserPanel_Loaded(object sender, RoutedEventArgs e)
        {
            //Agrego los badges
            this.AddBadges();

            //Agrego el Nombre, lo recorto si es muy largo
            txtName.Text = Current.Instance.Earthwatcher.FullName;
            if (this.txtName.Text.Length > 16)
            {
                txtName.Text = Current.Instance.Earthwatcher.FullName.Substring(0, 15) + "...";
                ToolTipService.SetToolTip(this.txtName, Current.Instance.Earthwatcher.FullName);
            }

            //Agrego Los Candados a las secciones que no se puede acceder
            this.JaguarLock.Visibility      = Current.Instance.Features.IsUnlocked(EwFeature.JaguarGame) ? Visibility.Collapsed : Visibility.Visible;
            this.CollectionsLock.Visibility = Current.Instance.Features.IsUnlocked(EwFeature.Collections) ? Visibility.Collapsed : Visibility.Visible;

            //Cargo el listado de paises e idiomas
            this.LoadCountriesAndLanguagesCombo();

            //Jaguar
            this.ManageJaguarWindow();

            //Collections
            collectionRequests.GetCollectionItemsByEarthwatcher(Current.Instance.Earthwatcher.Id);
        }