Example #1
0
        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);
                }
            }
        }
Example #2
0
 public void RemoveUrlRow(UrlRow row) {
     this.Rows.Remove(row);
 }
Example #3
0
 public UrlRowChangeEvent(UrlRow row, System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
Example #4
0
 public void AddUrlRow(UrlRow row) {
     this.Rows.Add(row);
 }