Esempio n. 1
0
            public override void SetStatus(RefreshViewStatus status)
            {
                base.SetStatus (status);

                if (!ChickenNoisesEnabled)
                    return;

                switch (status){
                case RefreshViewStatus.ReleaseToReload:
                    if (chickenStart == null)
                        chickenStart = AVAudioPlayer.FromUrl (new NSUrl ("Audio/chicken1.caf"));
                    if (chickenStart != null){
                        chickenStart.Volume = 0.5f;
                        chickenStart.Play ();
                        playedFirstChicken = true;
                    }
                    break;

                case RefreshViewStatus.Loading:
                    if (chickenEnd == null)
                        chickenEnd = AVAudioPlayer.FromUrl (new NSUrl ("Audio/chicken2.caf"));
                    if (chickenEnd != null && playedFirstChicken){
                        chickenEnd.Volume = 0.5f;
                        chickenEnd.Play ();
                    }
                    playedFirstChicken = false;
                    break;

                default:
                    playedFirstChicken = false;
                    break;
                }
            }
Esempio n. 2
0
            public override void SetStatus(RefreshViewStatus status)
            {
                base.SetStatus(status);

                if (!ChickenNoisesEnabled)
                {
                    return;
                }

                switch (status)
                {
                case RefreshViewStatus.ReleaseToReload:
                    if (chickenStart == null)
                    {
                        chickenStart = AVAudioPlayer.FromUrl(new NSUrl("Audio/chicken1.caf"));
                    }
                    if (chickenStart != null)
                    {
                        chickenStart.CurrentTime = 0;
                        chickenStart.Volume      = 0.5f;
                        chickenStart.Play();
                        playedFirstChicken = true;
                    }
                    break;

                case RefreshViewStatus.Loading:
                    if (chickenEnd == null)
                    {
                        chickenEnd = AVAudioPlayer.FromUrl(new NSUrl("Audio/chicken2.caf"));
                    }
                    if (chickenEnd != null && playedFirstChicken)
                    {
                        chickenEnd.CurrentTime = 0;
                        chickenEnd.Volume      = 0.5f;
                        chickenEnd.Play();
                    }
                    playedFirstChicken = false;
                    break;

                default:
                    playedFirstChicken = false;
                    break;
                }
            }
		public virtual void SetStatus (RefreshViewStatus status)
		{
			if (this.status == status)
			{
				return;
			}
			
			string s = "Release to update...";	
			switch (status)
			{
				case RefreshViewStatus.Loading:
				s = "Updating..."; 
				break;				
				case RefreshViewStatus.PullToReload:
				s = "Pull down to update...";
				break;
			}
			statusLabel.Text = s;
		}
        public virtual void SetStatus(RefreshViewStatus status)
        {
            if (this.status == status)
            {
                return;
            }

            string s = "Release to refresh";

            switch (status)
            {
            case RefreshViewStatus.Loading:
                s = "Loading...";
                break;

            case RefreshViewStatus.PullToReload:
                s = "Pull down to refresh...";
                break;
            }
            statusLabel.Text = s;
        }
Esempio n. 5
0
        public virtual void SetStatus(RefreshViewStatus status)
        {
            if (this.status == status)
            {
                return;
            }

            string s = ReleaseLabelText;

            switch (status)
            {
            case RefreshViewStatus.Loading:
                s = LoadingLabelText;
                break;

            case RefreshViewStatus.PullToReload:
                s = PullLabelText;
                break;
            }
            statusLabel.Text = s;
        }
Esempio n. 6
0
		public virtual void SetStatus (RefreshViewStatus status)
		{
			if (this.status == status)
				return;
			
			string s = "Release to refresh".GetText ();
	
			switch (status){
			case RefreshViewStatus.Loading:
				s = "Loading...".GetText (); 
				break;
				
			case RefreshViewStatus.PullToReload:
				s = "Pull down to refresh...".GetText ();
				break;
			}
			StatusLabel.Text = s;
		}
		public virtual void SetStatus (RefreshViewStatus status)
		{
			if (this.status == status)
				return;
			
			string s = ReleaseMessage;
	
			switch (status){
			case RefreshViewStatus.Loading:
				s = "Loading..."; 
				break;
				
			case RefreshViewStatus.PullToReload:
				s = PullMessage;
				break;
			}
			statusLabel.Text = s;
		}