//private string vin; //private decimal price; public AddAuto() { InitializeComponent(); autoAdapter = new autoDataSetTableAdapters.AUTOTableAdapter(); autoAdapter.ClearBeforeFill = true; autoAdapter.Fill(this.autoDataSet.AUTO); }
public AddAuto(long autoID, string color, long modID, long markID, long modelID, long engineID, string vin) { InitializeComponent(); autoAdapter = new autoDataSetTableAdapters.AUTOTableAdapter(); autoAdapter.ClearBeforeFill = true; autoAdapter.Fill(this.autoDataSet.AUTO); edit = true; this.autoID = autoID; txtColor.Text = color; txtVIN.Text = vin; this.markID = markID; this.modelID = modelID; this.engineID = engineID; }