public void StopRemoteControl()
{
try
{
controlWindow.WriteToConsole("Remoting Stopped!");
setValuesDisplayedOnUI(loadParameters(profilesPath + "tempParameters.bin"));
if (System.IO.File.Exists(profilesPath + "tempParameters.bin"))
{
System.IO.File.Delete(profilesPath + "tempParameters.bin");
}
}
catch (Exception)
{
controlWindow.WriteToConsole("Unable to load Parameters.");
}
HCState = SHCUIControlState.OFF;
controlWindow.UpdateUIState(HCState);
ApplyRecordedStateToHardware();
}