cSurvey Forum

cSurvey => How to => Topic aperto da: Dgrozic - Ottobre 27, 2021, 10:24:44 pm

Titolo: Highlight excluded shots
Inserito da: Dgrozic - Ottobre 27, 2021, 10:24:44 pm

does anyone know how to highlight (in design view) the shots that are excluded from calculations (in the data view)?
I understand there is an option to write your own highlight condition, but I do not know how to write this condition in VB.NET or C# since I am unfamiliar with the syntax.

Titolo: Re:Highlight excluded shots
Inserito da: cepe - Novembre 05, 2021, 09:24:57 am
Add a shot's highlight, edit is function, press unwrap and put this code:

public function GetHighlight(Details as cShotHighlightDetails) as boolean
      return details.element.exclude andalso not details.element.splay
end function

This highlights shot's with exclude flag but not splay (of course, remove the 'andalso not details.element.splay' part to highlight also splays).