public static TargetParam Read(BinaryReader br) { EnumTarget et = (EnumTarget)br.ReadUInt32(); uint occupation = 0; if (et == EnumTarget.occupation_list) { occupation = br.ReadUInt32(); } return(new TargetParam() { Target = et, Occupations = occupation }); }
private bool GetLaserIntensity(int nIndex, EnumTarget target, out int InstensityValue) { InstensityValue = 0; return(true); if (nIndex != 1 && nIndex != 2) { return(false); } LDS lds = nIndex == 1 ? lds1 : lds2; InstensityValue = lds.GetExposeValue(Prescription.CMosPointNumber); return(InstensityValue > 0);; }