public virtual void InitializeControl(EUField field, EUFolder rootFolder, EUListSetting listSetting, EUListItem listItem)
 {
     Field       = field;
     RootFolder  = rootFolder;
     ListItem    = listItem;
     ListSetting = listSetting;
     if (EmailMappingPropertyName != null && EmailMappingPropertyName != String.Empty)
     {
         EmailMappingField = CommonManager.GetEUEmailField(EmailMappingPropertyName);
     }
 }
Ejemplo n.º 2
0
 void emailFieldMappingControl1_MappingChange(EUEmailFields selectedEmailMappingField)
 {
     EmailMappingField = selectedEmailMappingField;
     if (selectedEmailMappingField != EUEmailFields.NotSelected)
     {
         checkBox1.Enabled = false;
     }
     else
     {
         checkBox1.Enabled = true;
     }
 }
 void emailFieldMappingControl1_MappingChange(EUEmailFields selectedEmailMappingField)
 {
     EmailMappingField = selectedEmailMappingField;
     if (selectedEmailMappingField != EUEmailFields.NotSelected)
     {
         dateTimePicker1.Enabled = false;
     }
     else
     {
         dateTimePicker1.Enabled = true;
     }
 }
 void emailFieldMappingControl1_MappingChange(EUEmailFields selectedEmailMappingField)
 {
     EmailMappingField = selectedEmailMappingField;
     if (selectedEmailMappingField != EUEmailFields.NotSelected)
     {
         numericUpDown1.Enabled = false;
     }
     else
     {
         numericUpDown1.Enabled = true;
     }
 }
Ejemplo n.º 5
0
        private void OkButton_Click(object sender, EventArgs e)
        {
            if (FieldsComboBox.SelectedItem != null)
            {
                SelectedField = (EUEmailFields)FieldsComboBox.SelectedItem;
            }
            else
            {
//                SelectedField = null;
            }
            this.DialogResult = DialogResult.OK;
        }
Ejemplo n.º 6
0
 private void MappingFieldCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     if (PreventEventTrigering == true)
     {
         return;
     }
     if (MappingFieldCheckBox.Checked == true)
     {
         EmailMappingFieldSelectionForm emailMappingFieldSelectionForm = new EmailMappingFieldSelectionForm();
         emailMappingFieldSelectionForm.InitializeForm();
         emailMappingFieldSelectionForm.ShowDialog();
         if (emailMappingFieldSelectionForm.DialogResult == DialogResult.OK)
         {
             SelectedEmailMappingField = emailMappingFieldSelectionForm.SelectedField;
         }
     }
     else
     {
         SelectedEmailMappingField = EUEmailFields.NotSelected;
     }
 }
        public List <EUEmailMapping> GetEmailMappings(List <EUEmailMapping> _emailMappings)
        {
            List <EUEmailMapping> emailMappings = new List <EUEmailMapping>();

            foreach (string name in Enum.GetNames(typeof(EUEmailFields)))
            {
                if (name != EUEmailFields.BCC.ToString()) // JOEL JEFFERY 20110714 - filter out pesky BCC fields
                {
                    EUEmailFields  euEmailField = (EUEmailFields)Enum.Parse(typeof(EUEmailFields), name);
                    EUEmailMapping emailMapping = new EUEmailMapping();
                    emailMapping.OutlookFieldName = euEmailField.ToString();

                    EUEmailMapping tempEmailMapping = _emailMappings.SingleOrDefault(eMapping => eMapping.OutlookFieldName == emailMapping.OutlookFieldName);
                    if (tempEmailMapping != null)
                    {
                        emailMapping.SharePointFieldName = tempEmailMapping.SharePointFieldName;
                    }

                    emailMappings.Add(emailMapping);
                }
            }
            return(emailMappings);
        }