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 Recipients(Application application, IntPtr pIRecipients)
 {
     m_application = application;
     m_pIRecipients =  pIRecipients;
 }
Exemplo n.º 4
0
        private void Export(PropertyInfo[] fields, FileStream fs)
        {
            try
            {
                // The Application object is the only object which can be viewed
                // by external libraries. Other PocketOutlook objects are created
                // by calling various methods on the Application object.
                PocketOutlook.Application app = new PocketOutlook.Application();

                // Log the user onto a Pocket Outlook session
                app.Logon();

                // get contacts info
                ItemCollection poicContactsCollection = app.GetDefaultFolder(folderContactsConst).Items;

                PocketOutlook.Contact pa;

                // Add all the Contacts to a ListView.
                for (int i = 0; i < poicContactsCollection.Count; i++)
                {
                    pa = (PocketOutlook.Contact) poicContactsCollection.Item(i + 1);      // Starting with first item, item 'zero' does not exist

                    // Add contact information to the list view
                    //string[] displayInfo = new string[3];
                    //this.setupListViewItem(pa, out displayInfo[0], out displayInfo[1], out displayInfo[2]);
                    //this.lvContacts.Items.Add(new ListViewItem(displayInfo));

                    // Put the data values into a record string
                    string record = "";
                    foreach (PropertyInfo f in fields)
                        record += ProtectValue(f.GetValue(pa, null).ToString()) + separator;

                    // Replace the last comma with a CR then save into file
                    byte[] data = EncodeRecord(record.Substring(0, record.Length - separator.Length) + lineSeparator);
                    fs.Write(data, 0, data.Length);
                }

                // log the user out
                app.Logoff();
            }
            catch (Exception exception)
            {
                System.Windows.Forms.MessageBox.Show(exception.ToString());
            }
        }
Exemplo n.º 5
0
 public TimeZone(Application application,
     ref IntPtr rpITimeZone)
 {
     m_application = application;
     m_pITimeZone = rpITimeZone;
 }
Exemplo n.º 6
0
 internal Exceptions(Application application, Appointment appointment, IntPtr pIExceptions)
 {
     m_application = application;
     m_appointment = appointment;
     m_pIExceptions =  pIExceptions;
 }
Exemplo n.º 7
0
 internal Contact(Application application,
     ref IntPtr pIContact)
     : base(application, ref pIContact)
 {
 }
Exemplo n.º 8
0
 internal Recipient(Application application, IntPtr pIRecipient)
 {
     m_application = application;
     m_pIRecipient =  pIRecipient;
 }
Exemplo n.º 9
0
 internal Task(Application application, ref IntPtr pITask)
     : base(application, ref pITask)
 {
 }
Exemplo n.º 10
0
 // The constructor is internal to prevent objects other than the
 // Application class from using "new" to create an object of this
 // type.
 internal City(Application application,
     ref IntPtr pICity)
     : base(application, ref pICity)
 {
 }
Exemplo n.º 11
0
 internal ItemCollection(Application application, int tItemType, ref IntPtr pIPOutlookItemCollection)
 {
     m_pIPOutlookItemCollection = pIPOutlookItemCollection;
     m_tItemType = tItemType;
     m_application = application;
 }
Exemplo n.º 12
0
 internal Folder(Application application, IntPtr pIFolder)
 {
     m_application = application;
     m_pIFolder = pIFolder;
 }
Exemplo n.º 13
0
 // The constructor is internal to prevent objects outside of the
 // PocketOutlook library from using "new" to create an object of
 // this type.
 internal Appointment(Application application,
     ref IntPtr pIAppointment)
     : base(application, ref pIAppointment)
 {
     m_application = application;
 }
Exemplo n.º 14
0
 protected OutlookItem(Application application, ref IntPtr pIItem)
 {
     m_application = application;
     m_pIItem = pIItem;
 }