Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
Exemplo n.º 1
0
 public static DTMeetingNotification MeetingNotificationToDT(Convocatoria meeting)
 {
     DTMeetingNotification dtMeetingNotification = new DTMeetingNotification();
     dtMeetingNotification.id = meeting.id;
     dtMeetingNotification.idMovement = meeting.idMovimiento;
     dtMeetingNotification.name = meeting.titulo;
     dtMeetingNotification.description = meeting.descripcion + " ";
     dtMeetingNotification.locationLati = (float)meeting.latitud;
     dtMeetingNotification.locationLong = (float)meeting.longitud;
     dtMeetingNotification.minQuorum = meeting.minQuorum == null ? 0 : meeting.minQuorum.Value;
     dtMeetingNotification.imagePath = meeting.logo;
     dtMeetingNotification.dateBegin = meeting.fechaInicio;
     dtMeetingNotification.dateEnd = meeting.fechaFin;
     dtMeetingNotification.numberAttendants = meeting.cantAsistencias == null ? 0 : meeting.cantAsistencias.Value;
     dtMeetingNotification.myAttendance = meeting.miAsistencia == null ? 0 : meeting.miAsistencia.Value;
     dtMeetingNotification.isConfirmed = meeting.estaConfirmada == null ? false : meeting.estaConfirmada.Value;
     dtMeetingNotification.isActive = meeting.estaActiva == null ? false : meeting.estaActiva.Value;
     dtMeetingNotification.imagePath = meeting.logo == null ? "" : meeting.logo;
     return dtMeetingNotification;
 }
Exemplo n.º 2
0
 public static Convocatoria DTToMeeting (DTMeeting dtMeeting)
 {
     Convocatoria meeting = new Convocatoria();
     meeting.id = dtMeeting.id;
     meeting.idMovimiento = dtMeeting.idMovement;
     meeting.titulo = dtMeeting.name;
     meeting.descripcion = dtMeeting.description;
     meeting.latitud = dtMeeting.locationLati;
     meeting.longitud = dtMeeting.locationLong;
     meeting.minQuorum = dtMeeting.minQuorum;
     meeting.logo = dtMeeting.imagePath;
     meeting.fechaInicio = dtMeeting.dateBegin;
     meeting.fechaFin = dtMeeting.dateEnd;
     meeting.cantAsistencias = dtMeeting.numberAttendants;
     meeting.miAsistencia = dtMeeting.myAttendance;
     meeting.estaConfirmada = dtMeeting.isConfirmed;
     meeting.estaActiva = dtMeeting.isActive;
     return meeting;
 }
Exemplo n.º 3
0
 partial void DeleteConvocatoria(Convocatoria instance);
Exemplo n.º 4
0
 partial void UpdateConvocatoria(Convocatoria instance);
Exemplo n.º 5
0
 partial void InsertConvocatoria(Convocatoria instance);
Exemplo n.º 6
0
		private void detach_Convocatorias(Convocatoria entity)
		{
			this.SendPropertyChanging();
			entity.Usuario = null;
		}
Exemplo n.º 7
0
		private void attach_Convocatorias(Convocatoria entity)
		{
			this.SendPropertyChanging();
			entity.Movimiento = this;
		}