コード例 #1
0
        public void Update(string venue, DateTime dateTime, byte genreId)
        {
            var notification = Notification.GigUpdated(this, DateTime, Venue);

            Venue    = venue;
            DateTime = dateTime;
            GenreId  = genreId;

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }
コード例 #2
0
ファイル: Gig.cs プロジェクト: nicolasintelex/GigHub
        internal void Modify(DateTime datetime, string venue, byte genre)
        {
            var notification = Notification.GigUpdated(this, DateTime, Venue);

            DateTime = datetime;
            Venue = venue;
            GenreId = genre;

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }
コード例 #3
0
        public void Update(DateTime newDt, string newVenue, byte newGenreId)
        {
            var notification = Notification.GigUpdated(this, DateTime, Venue);

            DateTime = newDt;
            Venue    = newVenue;
            GenreId  = newGenreId;

            foreach (var user in Attendances.Select(a => a.Attendee))
            {
                user.Notify(notification);
            }
        }
コード例 #4
0
ファイル: Gig.cs プロジェクト: rykamol/GigHub
        public void Modify(string viewModelVanue, DateTime getDateTime, byte viewModelGenre)
        {
            var notification = Notification.GigUpdated(this, getDateTime, viewModelVanue);

            Vanue    = viewModelVanue;
            DateTime = getDateTime;
            GenreId  = viewModelGenre;

            foreach (var attendee in Attendences.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }
コード例 #5
0
ファイル: Gig.cs プロジェクト: evtolley/GigHub
        public void Modify(GigFormViewModel model, Gig gig)
        {
            Notification notification = Notification.GigUpdated(this, DateTime, Venue);

            gig.Venue    = model.Venue;
            gig.DateTime = model.GetDateTime();
            gig.GenreId  = model.Genre;

            foreach (ApplicationUser attendee in Attendances.Select(x => x.Attendee))
            {
                attendee.Notify(notification);
            }
        }
コード例 #6
0
        public void Update(DateTime viewModelDateTime, int viewModelGenre, string viewModelVenue)
        {
            var notification = Notification.GigUpdated(this, DateTime, Venue);

            DateTime = viewModelDateTime;
            GenreId  = viewModelGenre;
            Venue    = viewModelVenue;

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }
コード例 #7
0
        public void Mofify(DateTime dateTime, string venue, int genre)
        {
            var notiffication = Notification.GigUpdated(this, dateTime, venue);

            Venue    = venue;
            GenreId  = genre;
            DateTime = dateTime;

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notiffication);
            }
        }
コード例 #8
0
        public void Modify(DateTime dateTime, byte genreId, string venue)
        {
            DateTime = dateTime;
            GenreId  = genreId;
            Venue    = venue;

            var notification = Notification.GigUpdated(this, dateTime, venue);

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }
コード例 #9
0
        public void Modify(DateTime dateAdded, string venue, int genreId)
        {
            Notification notification = Notification.GigUpdated(this, dateAdded, venue);

            Venue     = venue;
            DateAdded = dateAdded;
            GenreId   = genreId;

            foreach (ApplicationUser attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }
コード例 #10
0
ファイル: Gig.cs プロジェクト: sampanna99/.netGigHub
        public void Modify(DateTime dateTime, string venue, byte genre)
        {
            var notification = Notification.GigUpdated(this, DateTime, Venue); // do not write new since it is a static method not an instance.

            Venue    = venue;
            DateTime = dateTime;
            GenreId  = genre;

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }
コード例 #11
0
        public void Modify(DateTime dateTime, string venue, int genre)
        {
            var notification = Notification.GigUpdated(DateTime, Venue, this);


            DateTime = dateTime;
            Venue    = venue;
            GenreId  = genre;

            foreach (var attendee in Attendences.Select(b => b.Attendee))
            {
                attendee.Notify(notification);
            }
        }
コード例 #12
0
        public void Modify(DateTime dateTime, string venue, byte genre)
        {
            //LD I call the static method that is in the class "Notification" that create a new "Notification" and return it
            var notification = Notification.GigUpdated(this, DateTime, Venue);

            Venue    = venue;
            DateTime = dateTime;
            GenreId  = genre;

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }
コード例 #13
0
        public void Modify(DateTime dateTime, string venue, byte genre)
        {
            // create a new notification for the gig and notify each attendee
            // if the gig is updated
            var notification = Notification.GigUpdated(this, DateTime, Venue);

            // set the venue, date and genre for the notification
            Venue    = venue;
            DateTime = dateTime;
            GenreId  = genre;

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }