private void Collection_Changed(object sender, NotifyCollectionChangedEventArgs e) { try { jsonIO.WriteToJsonFile(contacts); } catch (Exception ex) { MessageBox.Show(ex.Message); Close(); } }
private void Collection_Changed(object sender, NotifyCollectionChangedEventArgs e) { IOservice.WriteToJsonFile(tasksClasses); AddTasksDate(); }