Created
September 23, 2011 17:58
-
-
Save SuperYeti/1238021 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string DeviceIp | |
{ | |
get | |
{ | |
Util.Defaults.Init(); | |
return Util.Defaults.StringForKey("deviceip"); | |
} | |
set | |
{ | |
try | |
{ | |
Util.Defaults.SetString(value, "deviceip"); | |
} | |
catch{} | |
} | |
} | |
public static int DevicePort | |
{ | |
get | |
{ | |
Util.Defaults.Init(); | |
return Util.Defaults.IntForKey("deviceport"); | |
} | |
set | |
{ | |
try | |
{ | |
Util.Defaults.SetInt(value, "deviceport"); | |
} | |
catch(Exception) | |
{ | |
} | |
} | |
} | |
public static bool DeviceVerified | |
{ | |
get | |
{ | |
Util.Defaults.Init(); | |
return Util.Defaults.BoolForKey("deviceverified"); | |
} | |
set | |
{ | |
try | |
{ | |
Util.Defaults.SetBool(value, "deviceverified"); | |
} | |
catch(Exception) | |
{ | |
} | |
} | |
} | |
public static bool DefaultDataLoaded | |
{ | |
get | |
{ | |
Util.Defaults.Init(); | |
return Util.Defaults.BoolForKey("defaultdataloaded"); | |
} | |
set | |
{ | |
try | |
{ | |
Util.Defaults.SetBool(value, "defaultdataloaded"); | |
} | |
catch(Exception) | |
{ | |
} | |
} | |
} | |
static OBDIIEngineLibrary.OBDIIEngine obdEngine; | |
public static OBDIIEngineLibrary.OBDIIEngine OBDEngine | |
{ | |
get | |
{ | |
if(obdEngine == null) | |
obdEngine = new OBDIIEngineLibrary.OBDIIEngine(DeviceIp,DevicePort); | |
return obdEngine; | |
} | |
} | |
static OBDIIEngineLibrary.ELM.ElmGeneral elmGeneral; | |
public static OBDIIEngineLibrary.ELM.ElmGeneral ElmGeneral | |
{ | |
get | |
{ | |
if(elmGeneral == null) | |
elmGeneral = new OBDIIEngineLibrary.ELM.ElmGeneral(OBDIIEngineLibrary.Comm.OBDIITCPPort.getInstance(DeviceIp,DevicePort)); | |
return elmGeneral; | |
} | |
} | |
static OBDIIEngineLibrary.ELM.ElmVoltageReadingCommands elmVoltage; | |
public static OBDIIEngineLibrary.ELM.ElmVoltageReadingCommands ElmVoltage | |
{ | |
get | |
{ | |
if(elmVoltage == null) | |
elmVoltage = new OBDIIEngineLibrary.ELM.ElmVoltageReadingCommands(OBDIIEngineLibrary.Comm.OBDIITCPPort.getInstance(DeviceIp,DevicePort)); | |
return elmVoltage; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment