view Agendas/trunk/src/Agendas.Domain/EventoDescartadoState.cs @ 185:2d02adb79322

Se agrega fecha de termino de un Evento y se incluye la hora a la fecha de inicio. Se modifica la propiedad Fecha del Evento, renombrandola FechaInicio. En el ModelView se agrega propiedades Duración y Hora del Evento cuando es Modificado, Nuevo y Agendado. Las fechas ingresadas son creadas en sistema UTC Queda pendiente Agregar duración a Google Calendar.
author alabra
date Tue, 09 Aug 2011 01:04:27 -0400
parents 3639803112c6
children
line wrap: on
line source

using System;
using AltNetHispano.Agendas.Domain.Exceptions;

namespace AltNetHispano.Agendas.Domain
{
    public class EventoDescartadoState : EventoState
    {
		protected EventoDescartadoState()
        {
        }

        private static readonly EventoState _instance = new EventoDescartadoState();

        public static EventoState GetInstance()
        {
            return _instance;
        }

        public override void Promover(Evento evento, Accion accion)
        {
            throw new AccionNoSoportadaException(this.GetType(), accion);
        }

    	public override string Descripcion
    	{
			get { return "Descartado"; }
    	}

    	public override bool PuedePromover(Accion accion)
        {
            return false;
        }
    }
}