void SoftwareTrigger_Trigger(object sender, EventArgs e) { if (Running && FTrigger == sender) { FThread.Perform(() => { FDevice.SetParam(PRM.TRG_SOFTWARE, 0); }); } }