private void Save_Click(object sender, RoutedEventArgs e) { TryCatch.Action(() => { lock (_booklock) { _state.ItemSource.Save(Book.Items.Cast <BookItem>().Skip(1)); } }); }
private void Refresh_Click(object sender, RoutedEventArgs e) { TryCatch.Action(() => { lock (_booklock) { Book.Items.Clear(); Populate(_state.GetAll()); } }); }