Exemplo n.º 1
0
        protected virtual void OnContributorAddedEvent(ContributorAddedEventHandler e)
        {
            var handler = ContributorAddedEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
		void OnContributorAdded (object sender, ContributorAddedEventHandler e)
		{
			var model = e.User;

			var view = LayoutInflater.Inflate(Resource.Layout.ContributorItem, null);

			var image = view.FindViewById<ImageView>(Resource.Id.image);

			var name = view.FindViewById<TextView>(Resource.Id.name);

			var pullRequest = view.FindViewById<TextView>(Resource.Id.pr);

			name.Text = model.UserName;

			pullRequest.Text = string.Format(GetString(Resource.String.PullRequestSubmitedContributors), model.MergedPullRequest);

			_contributors.AddView(view);
		}
Exemplo n.º 3
0
        void OnContributorAdded(object sender, ContributorAddedEventHandler e)
        {
            var model = e.User;

            var view = LayoutInflater.Inflate(Resource.Layout.ContributorItem, null);

            var image = view.FindViewById <ImageView>(Resource.Id.image);

            var name = view.FindViewById <TextView>(Resource.Id.name);

            var pullRequest = view.FindViewById <TextView>(Resource.Id.pr);

            name.Text = model.UserName;

            pullRequest.Text = string.Format(GetString(Resource.String.PullRequestSubmitedContributors), model.MergedPullRequest);

            _contributors.AddView(view);
        }
Exemplo n.º 4
0
		protected virtual void OnContributorAddedEvent (ContributorAddedEventHandler e)
		{
			var handler = ContributorAddedEvent;
			if (handler != null)
				handler (this, e);
		}