private void btnImportOutlook_Click(object sender, EventArgs e)
        {
            OutlookContactForm ocForm = new OutlookContactForm();

            ocForm.MultiSelect = false;

            if (ocForm.ShowDialog(this) == DialogResult.OK)
            {
                if (ocForm.SelectedContacts.Length > 0)
                {
                    txtTelephoneNumber.Text = ocForm.SelectedContacts[0].BusinessTelephoneNumber;
                }
            }
        }
        private void btnImportOutlook_Click(object sender, EventArgs e)
        {
            OutlookContactForm ocForm = new OutlookContactForm();

            ocForm.MultiSelect = false;

            if (ocForm.ShowDialog(this) == DialogResult.OK)
            {
                if (ocForm.SelectedContacts.Length > 0)
                {
                    txtFirstName.Text    = ocForm.SelectedContacts[0].FirstName;
                    txtLastName.Text     = ocForm.SelectedContacts[0].LastName;
                    txtEmailAddress.Text = ocForm.SelectedContacts[0].Email1Address;
                }
            }
        }
        private void btnImportOutlook_Click(object sender, EventArgs e)
        {
            Forms.OutlookContactForm ocForm = new OutlookContactForm();

            if (ocForm.ShowDialog(this) == DialogResult.OK)
            {
                if (ocForm.SelectedContacts.Length > 0)
                {
                    if (ocForm.SelectedContacts[0].BusinessTelephoneNumber != null)
                    {
                        txtTelephoneNumber.Text = ocForm.SelectedContacts[0].BusinessTelephoneNumber;
                    }
                    else
                    {
                        txtTelephoneNumber.Text = ocForm.SelectedContacts[0].PrimaryTelephoneNumber;
                    }
                }
            }
        }
예제 #4
0
        private void btnImportOutlook_Click(object sender, EventArgs e)
        {
            Forms.OutlookContactForm ocForm = new OutlookContactForm();

            if (ocForm.ShowDialog(this) == DialogResult.OK)
            {
                if(ocForm.SelectedContacts.Length > 0)
                {
                    if (ocForm.SelectedContacts[0].BusinessTelephoneNumber != null)
                    {
                        txtTelephoneNumber.Text = ocForm.SelectedContacts[0].BusinessTelephoneNumber;
                    }
                    else
                    {
                        txtTelephoneNumber.Text = ocForm.SelectedContacts[0].PrimaryTelephoneNumber;
                    }
                }
            }
        }
예제 #5
0
        private void btnImportOutlook_Click(object sender, EventArgs e)
        {
            OutlookContactForm ocForm = new OutlookContactForm();

            ocForm.MultiSelect = false;

            if (ocForm.ShowDialog(this) == DialogResult.OK)
            {
                if (ocForm.SelectedContacts.Length > 0)
                {
                    txtFirstName.Text = ocForm.SelectedContacts[0].FirstName;
                    txtLastName.Text = ocForm.SelectedContacts[0].LastName;
                    txtEmailAddress.Text = ocForm.SelectedContacts[0].Email1Address;
                }
            }
        }
        private void btnImportOutlook_Click(object sender, EventArgs e)
        {
            OutlookContactForm ocForm = new OutlookContactForm();

            ocForm.MultiSelect = false;

            if (ocForm.ShowDialog(this) == DialogResult.OK)
            {
                if (ocForm.SelectedContacts.Length > 0)
                {
                    txtTelephoneNumber.Text = ocForm.SelectedContacts[0].BusinessTelephoneNumber;
                }
            }
        }