private void DeleteClick(object sender, RoutedEventArgs e) { string content = (sender as Button).Tag.ToString(); UrlRow urlRow = Urls.FindAll(url => url.Url == content).FirstOrDefault(); if (CustomMessageBox.ShowDialog(Window, "האם אתה בתוך שברצונך למחוק את האתר " + content + " מהרשימה?", "האם אתה בטוח?", CustomMessageBox.CustomMessageBoxTypes.Question, "מחק", "בטל")) { myListView.Items.Remove(urlRow); Urls.RemoveAll(item => item.Url == content); if (urlRow.Color == BLACKLIST_COLOR) { FilteringSystem.GetCurrentFilteringSettings().RemoveSiteFromBlackList(content); } else { FilteringSystem.GetCurrentFilteringSettings().RemoveSiteFromExceptionList(content); } } }
public void RemoveUrlRow(UrlRow row) { this.Rows.Remove(row); }
public UrlRowChangeEvent(UrlRow row, System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void AddUrlRow(UrlRow row) { this.Rows.Add(row); }