private void bDelete_Click(object sender, RoutedEventArgs e) { try { string name = cbEditName.Text; double price = double.Parse(tbEditPrice.Text); conn.DeleteFoodByNameAndPrice(name, price); ClearEditFields(); PopulateCBEditFoodID(); }catch (Exception ex) { MessageBox.Show(ex.ToString()); } }