示例#1
0
    public static IReminder <T> GetReminder <T>() where T : class, IIdentifiableEntity
    {
        IReminder <T> reminder = null;

        if (typeof(InvoiceSummary) == typeof(T))
        {
            reminder = new TimesheetReminder() as IReminder <T>;
        }
        return(reminder);
    }
    public static IReminder <T> GetReminder(string applicationType)
    {
        IReminder <T> reminder;

        switch (applicationType)
        {
        case "Invoicing":
            reminder = new TimesheetReminder() as IReminder <T>;
            break;

        default:
            reminder = null;
            break;
        }
        return(reminder);
    }