Exemple #1
0
 private void textEdit1_EditValueChanged(object sender, EventArgs e)
 {
     try
     {
         VINDecoder decoder = new VINDecoder();
         VINCarInfo carinfo = decoder.DecodeVINNumber(textEdit1.Text);
         lblCarModel.Text = carinfo.CarModel.ToString();
         lblEngineType.Text = carinfo.EngineType.ToString();
         lblMakeyear.Text = carinfo.Makeyear.ToString();
         lblPlant.Text = carinfo.PlantInfo;
         lblSeries.Text = carinfo.Series;
         lblTurbo.Text = carinfo.TurboModel.ToString();
         lblExtraInfo.Text = carinfo.ExtraInfo;
     }
     catch (Exception E)
     {
         Console.WriteLine("Failed to convert VIN number partially: " + E.Message);
     }
 }
 private void textEdit1_EditValueChanged(object sender, EventArgs e)
 {
     try
     {
         VINDecoder decoder = new VINDecoder();
         VINCarInfo carinfo = decoder.DecodeVINNumber(textEdit1.Text);
         lblCarModel.Text   = carinfo.CarModel.ToString();
         lblEngineType.Text = carinfo.EngineType.ToString();
         lblMakeyear.Text   = carinfo.Makeyear.ToString();
         lblPlant.Text      = carinfo.PlantInfo;
         lblSeries.Text     = carinfo.Series;
         lblTurbo.Text      = carinfo.TurboModel.ToString();
         lblExtraInfo.Text  = carinfo.ExtraInfo;
     }
     catch (Exception E)
     {
         Console.WriteLine("Failed to convert VIN number partially: " + E.Message);
     }
 }
Exemple #3
0
 private void DecodeVIN()
 {
     lblCarModel.Text = "---";
     lblEngineType.Text = "---";
     lblMakeyear.Text = "---";
     lblPlant.Text = "---";
     lblSeries.Text = "---";
     lblTurbo.Text = "---";
     lblExtraInfo.Text = "---";
     VINDecoder decoder = new VINDecoder();
     VINCarInfo carinfo = decoder.DecodeVINNumber(textEdit1.Text);
     lblCarModel.Text = carinfo.CarModel.ToString();
     lblEngineType.Text = carinfo.EngineType.ToString();
     lblMakeyear.Text = carinfo.Makeyear.ToString();
     lblPlant.Text = carinfo.PlantInfo;
     lblSeries.Text = carinfo.Series;
     lblTurbo.Text = carinfo.TurboModel.ToString();
     lblExtraInfo.Text = carinfo.ExtraInfo;
 }
        private void DecodeVIN()
        {
            lblCarModel.Text   = "---";
            lblEngineType.Text = "---";
            lblMakeyear.Text   = "---";
            lblPlant.Text      = "---";
            lblSeries.Text     = "---";
            lblTurbo.Text      = "---";
            lblExtraInfo.Text  = "---";
            VINDecoder decoder = new VINDecoder();
            VINCarInfo carinfo = decoder.DecodeVINNumber(textEdit1.Text);

            lblCarModel.Text   = carinfo.CarModel.ToString();
            lblEngineType.Text = carinfo.EngineType.ToString();
            lblMakeyear.Text   = carinfo.Makeyear.ToString();
            lblPlant.Text      = carinfo.PlantInfo;
            lblSeries.Text     = carinfo.Series;
            lblTurbo.Text      = carinfo.TurboModel.ToString();
            lblExtraInfo.Text  = carinfo.ExtraInfo;
        }