- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
for(int i =0; i<1;i++)
{
if (reader["Brand"].ToString() == addForm.txtBrand.Text) { flag = false; } else { flag = true; break; }
if (reader["Model"].ToString() == addForm.txtModel.Text) { flag = false; } else { flag = true; break; }
if (reader["Year"].ToString() == addForm.numYear.Value.ToString()) { flag = false; } else { flag = true; break; }
if (reader["Capacity"].ToString() == addForm.cboCapacity.Text) { flag = false; } else { flag = true; break; }
string k;
if (addForm.optAuto.Checked) { k = "Auto"; } else { k = "Mech"; }
if (reader["Control Box"].ToString() == k) { flag = false; } else { flag = true; break; }
if (reader["Country"].ToString() == addForm.txtCountry.Text) { flag = false; } else { flag = true; break; }
if (reader["Max speed"].ToString() == addForm.txtSpeed.Text) { flag = false; } else { flag = true; break; }
if (reader["Acceleration to 100 km/h"].ToString() == addForm.txtRacing.Text) { flag = false; } else { flag = true; break; }
if (reader["Engine type"].ToString() == addForm.txtEngine.Text) { flag = false; } else { flag = true; break; }
if (reader["Body"].ToString() == addForm.cboBody.Text) { flag = false; } else { flag = true; break; }
if (reader["Seats"].ToString() == addForm.numSeats.Value.ToString()) { flag = false; } else { flag = true; break; }
if (reader["Doors"].ToString() == addForm.numDoors.Value.ToString()) { flag = false; } else { flag = true; break; }
if (reader["Length"].ToString() == addForm.txtLength.Text) { flag = false; } else { flag = true; break; }
if (reader["Width"].ToString() == addForm.txtWidth.Text) { flag = false; } else { flag = true; break; }
if (reader["Power"].ToString() == addForm.txtPower.Text) { flag = false; } else { flag = true; break; }
if (reader["Drive Gear"].ToString() == addForm.cboTrans.Text) { flag = false; } else { flag = true; break; }
}