public void Activate() { if (!MainV2.comPort.BaseStream.IsOpen) { Enabled = false; return; } Enabled = true; startup = true; CMB_sonartype.setup( ParameterMetaDataRepository.GetParameterOptionsInt("RNGFND_TYPE", MainV2.comPort.MAV.cs.firmware.ToString()), "RNGFND_TYPE", MainV2.comPort.MAV.param); timer1.Start(); startup = false; }
public ConfigHWSonar() { InitializeComponent(); CMB_sonartype.setup(Utilities.ParameterMetaDataRepository.GetParameterOptionsInt("SONAR_TYPE"), "SONAR_TYPE", MainV2.comPort.MAV.param); }