示例#1
0
 private void _toDoDataList_ListChanged(object sender, ListChangedEventArgs e)
 {
     if (e.ListChangedType == ListChangedType.ItemAdded || e.ListChangedType == ListChangedType.ItemDeleted || e.ListChangedType == ListChangedType.ItemChanged)
     {
         try
         {
             _fileIOService.SafeData(sender);
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
             Close();
         }
     }
 }