Inheritance: System.EventArgs
Example #1
0
        private void OnSourceFinished(object sender, AudioSourceEventArgs e)
        {
            var stopped = SourceFinished;

            if (stopped != null)
            {
                stopped(sender, new AudioSourceEventArgs(e.Source));
            }
        }
 private void OnSourceFinished(AudioSourceEventArgs e)
 {
     var finished = this.SourceFinished;
     if (finished != null)
         finished (this, e);
 }
Example #3
0
 protected virtual void OnAudioSourceStopped(AudioSourceEventArgs e)
 {
     var stopped = this.AudioSourceStopped;
     if (stopped != null)
         stopped (this, e);
 }
Example #4
0
		void SourceStoped (object sender, AudioSourceEventArgs e)
		{
			this.users.MarkSilent (this.gablarski.Users[e.Source.OwnerId]);
			this.users.MarkSilent (e.Source);
		}
Example #5
0
		void SourceStarted (object sender, AudioSourceEventArgs e)
		{
			this.users.MarkTalking (this.gablarski.Users[e.Source.OwnerId]);
			this.users.MarkTalking (e.Source);
		}
Example #6
0
 private void OnSourceFinished(object sender, AudioSourceEventArgs e)
 {
     var stopped = SourceFinished;
     if (stopped != null)
         stopped (sender, new AudioSourceEventArgs (e.Source));
 }
Example #7
0
        private void OnSourceFinished(object sender, AudioSourceEventArgs e)
        {
            if (!UserTalkingCounts && e.Source.Id > 0 && e.Source.OwnerId == context.CurrentUser.UserId)
                return;

            RemoveTalker (e.Source);
        }
Example #8
0
        private void OnAudioSourceStarted(object sender, AudioSourceEventArgs e)
        {
            if ((!UserTalkingCounts && e.Source.OwnerId == context.CurrentUser.UserId)
                || this.context.Users[e.Source.OwnerId].CurrentChannelId != this.context.CurrentUser.CurrentChannelId)
            {
                return;
            }

            AddTalker (e.Source);
        }