Example #1
0
 private void SelectCategoryBtn_Click(object sender, EventArgs e)
 {
     DBRequests.MakeRequest(DBRequests.ChangePhotoCategory(_activePhoto.ID, _categories[CategoryList.SelectedIndices[0]].ID), (connection, command) =>
     {
         using (var reader = command.ExecuteReader())
         {
             CategoryLabel.Text = _categories[CategoryList.SelectedIndices[0]].Name;
         }
     });
 }