Ejemplo n.º 1
0
 public Heater_Calibrator()
 {
     Cal = new Calibration(this, Heaterlookupfile);
     try
     {
         string AduHid = File.ReadAllText(@"AduHid.dll", Encoding.UTF8);
     }
     catch (Exception ex)
     {
         MessageBox.Show("AduHid.dll is missing", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Environment.Exit(0);
     }
     try
     {
         string ontrak_sn = File.ReadAllText(@"ontrak.ini", Encoding.UTF8);
     }
     catch (Exception ex)
     {
         MessageBox.Show("ontrak.ini is missing", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Environment.Exit(0);
     }
     try
     {
         string CalibrationExpiryDates = File.ReadAllText(@"CalibrationExpiryDates.ini", Encoding.UTF8);
     }
     catch (Exception ex)
     {
         MessageBox.Show("CalibrationExpiryDates.ini is missing", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Environment.Exit(0);
     }
     try
     {
         string HeaterLookup = File.ReadAllText(Heaterlookupfile, Encoding.UTF8);
     }
     catch (Exception ex)
     {
         MessageBox.Show("Heater Lookup.ini is missing", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Environment.Exit(0);
     }
     InitializeComponent();
 }