示例#1
0
        private void cboClearAMapping_SelectedIndexChanged(object sender, EventArgs e)
        {
            MappingItem miDeleted = (MappingItem)cboClearAMapping.SelectedItem;

            m_mpWorking.MappingItems.Remove(miDeleted);
            cboClearAMapping.Visible = false;
            displayMappingProfileInRtb(miDeleted.ToString(), "deleted");
        }
示例#2
0
        private void btnAddMap_Click(object sender, EventArgs e)
        {
            if (lstSource.SelectedItem == null || lstDest.SelectedItem == null)
            {
                return;
            }

            FieldAndContentType fcS = (FieldAndContentType)lstSource.SelectedItem;
            FieldAndContentType fcD = (FieldAndContentType)lstDest.SelectedItem;

            //lstSource.Items.Remove(fcS);
            //lstDest.Items.Remove(fcD);

            MappingItem mi = new MappingItem(fcS.Field.InternalName, fcD.Field.InternalName);

            m_mpWorking.MappingItems.Add(mi);
            m_mpWorking.MappingItems.Sort();
            displayMappingProfileInRtb(mi.ToString(), "added");
        }