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