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"); }
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"); }