Exemplo n.º 1
0
 internal AppointmentException(Application application,
     Appointment appointment,
     IntPtr pIAppointmentException)
 {
     m_application = application;
     m_appointment = appointment;
     m_pIAppointmentException =  pIAppointmentException;
 }
Exemplo n.º 2
0
 internal RecurrencePattern(Application application,
     Appointment appointment,
     IntPtr pIRecurrencePattern)
 {
     m_application = application;
     m_appointment = appointment;
     m_pIRecurrencePattern =  pIRecurrencePattern;
 }
Exemplo n.º 3
0
 internal Exceptions(Application application, Appointment appointment, IntPtr pIExceptions)
 {
     m_application = application;
     m_appointment = appointment;
     m_pIExceptions =  pIExceptions;
 }
Exemplo n.º 4
0
        /*
         * A private function for creating an item of the proper type.
         */
        private OutlookItem CreateItem(IntPtr pItem)
        {
            OutlookItem item = null;
            OutlookItem.ItemType itemType = (OutlookItem.ItemType) m_tItemType;
            switch (itemType)
            {
                case OutlookItem.ItemType.AppointmentItem:
                    item = new Appointment(m_application, ref pItem);
                    break;
                case OutlookItem.ItemType.ContactItem:
                    item = new Contact(m_application, ref pItem);
                    break;
                case OutlookItem.ItemType.TaskItem:
                    item = new Task(m_application, ref pItem);
                    break;
                case OutlookItem.ItemType.CityItem:
                    item = new City(m_application, ref pItem);
                    break;
                default:
                    throw new InvalidProgramException();
            }

            return item;
        }