private void cSelectRestExpendComboBox_SelectedIndexChanged(object sender, EventArgs e) { Restaurant r = _rest.GetRestaurant(cSelectRestExpendComboBox.Text); if (!Equals(r, null)) { double expenses = _rest.CalcRestExp(r.RestaurantID); cRestExpendResultsTextBox.Text = "$" + string.Format("{0:0.00}", expenses); } }