public EditPopup(ToDoItem item) { InitializeComponent(); DataContext = item; tempdesc = item.Description; }
public void DeleteItem(ToDoItem item) { items.Remove(item); item.ToDo.Remove(); if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs("Items")); } }