private void btnAddRowExcludedGroup_Click(object sender, RoutedEventArgs e) { if (cmbAddRowExcludedGroup.SelectedItem as Group != null) { ExcludedGroup.Add(cmbAddRowExcludedGroup.SelectedItem as Group); Groups.Remove(cmbAddRowExcludedGroup.SelectedItem as Group); } }
protected void select2_Click(object sender, EventArgs e) { if (lstAvailable.SelectedItem != null) { foreach (int i in lstAvailable.GetSelectedIndices()) { if (AvailableFilteredCustomerGroup[i].CustomerGroupID == SystemCacheData.GetAnyCardHolderGroup().CustomerGroupID || AvailableFilteredCustomerGroup[i].CustomerGroupID == SystemCacheData.GetAnyCustomerGroup().CustomerGroupID || AvailableFilteredCustomerGroup[i].CustomerGroupID == SystemCacheData.GetNewCardHolderGroup().CustomerGroupID) { infobar.InnerText = AvailableFilteredCustomerGroup[i].Name + " " + PhraseLib.Lookup("offer-eligibility-validateexlgroup", LanguageID).Replace("'", "'"); infobar.Visible = true; break; } ExcludedGroup.Add(AvailableFilteredCustomerGroup[i]); } SetAvailableData(); } SetButtons(); }