/// <summary> /// Initializes a new instance of the <see cref="OCSimulator"/> class. /// Must be public for COM registration. /// </summary> public ObservingConditions() { try { TL = OCSimulator.TL; TL.LogMessage("ObservingConditions", "Starting initialisation"); clientNumber = OCSimulator.GetUniqueClientNumber(); TL.LogMessage(clientNumber, "ObservingConditions", "This instance's unique client number: " + clientNumber); TL.LogMessage(clientNumber, "ObservingConditions", "Completed initialisation"); } catch (Exception ex) { TL.LogMessageCrLf("ObservingConditions", ex.ToString()); } }
public string CommandString(string command, bool raw) { return(OCSimulator.CommandString(clientNumber, command, raw)); }
public bool CommandBool(string command, bool raw) { return(OCSimulator.CommandBool(clientNumber, command, raw)); }
public void CommandBlind(string command, bool raw) { OCSimulator.CommandBlind(clientNumber, command, raw); }
public string Action(string actionName, string actionParameters) { return(OCSimulator.Action(clientNumber, actionName, actionParameters)); }
/// <summary> /// Displays the Setup Dialog form. /// If the user clicks the OK button to dismiss the form, then /// the new settings are saved, otherwise the old values are reloaded. /// THIS IS THE ONLY PLACE WHERE SHOWING USER INTERFACE IS ALLOWED! /// </summary> public void SetupDialog() { OCSimulator.SetupDialog(clientNumber); }
public double TimeSinceLastUpdate(string PropertyName) { return(OCSimulator.TimeSinceLastUpdate(clientNumber, PropertyName)); }
public string SensorDescription(string PropertyName) { return(OCSimulator.SensorDescription(clientNumber, PropertyName)); }
public void Refresh() { OCSimulator.Refresh(clientNumber); }