Ejemplo n.º 1
0
        //private string vin;
        //private decimal price;

        public AddAuto()
        {
            InitializeComponent();
            autoAdapter = new autoDataSetTableAdapters.AUTOTableAdapter();
            autoAdapter.ClearBeforeFill = true;
            autoAdapter.Fill(this.autoDataSet.AUTO);
        }
Ejemplo n.º 2
0
        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;
        }