Example #1
0
 private void FB_Blacklist_Reset_Click(object sender, EventArgs e)
 {
     if (CBX_BlackList.Items.Count > 0)
     {
         CBX_BlackList.Items.Clear();
         CBX_BlackList.ResetText();
         Blacklist.Clear();
         LoadPhoto();
         FB_Blacklist_Reset.Enabled = CBX_BlackList.Items.Count > 0;
     }
 }
Example #2
0
 private void RemoveFromBlacklist()
 {
     if (CBX_BlackList.SelectedIndex >= 0)
     {
         foreach (int Id in Blacklist)
         {
             if (DBPhotosWebServices.GetUser(Id).Name == CBX_BlackList.SelectedItem.ToString())
             {
                 CBX_BlackList.Items.Remove(CBX_BlackList.SelectedItem);
                 Blacklist.Remove(Id);
                 CBX_BlackList.ResetText();
                 break;
             }
         }
     }
 }