public CoreSearchOptions(CoreDll.adSearchOptions searchOptions) { system = searchOptions.system != CoreDll.FALSE; hidden = searchOptions.hidden != CoreDll.FALSE; JPEG = searchOptions.JPEG != CoreDll.FALSE; BMP = searchOptions.BMP != CoreDll.FALSE; GIF = searchOptions.GIF != CoreDll.FALSE; PNG = searchOptions.PNG != CoreDll.FALSE; TIFF = searchOptions.TIFF != CoreDll.FALSE; EMF = searchOptions.EMF != CoreDll.FALSE; WMF = searchOptions.WMF != CoreDll.FALSE; EXIF = searchOptions.EXIF != CoreDll.FALSE; ICON = searchOptions.ICON != CoreDll.FALSE; JP2 = searchOptions.JP2 != CoreDll.FALSE; PSD = searchOptions.PSD != CoreDll.FALSE; DDS = searchOptions.DDS != CoreDll.FALSE; TGA = searchOptions.TGA != CoreDll.FALSE; }
public void ConvertTo(ref CoreDll.adSearchOptions searchOptions) { searchOptions.system = system ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.hidden = hidden ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.JPEG = JPEG ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.BMP = BMP ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.GIF = GIF ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.PNG = PNG ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.TIFF = TIFF ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.EMF = EMF ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.WMF = WMF ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.EXIF = EXIF ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.ICON = ICON ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.JP2 = JP2 ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.PSD = PSD ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.DDS = DDS ? CoreDll.TRUE : CoreDll.FALSE; searchOptions.TGA = TGA ? CoreDll.TRUE : CoreDll.FALSE; }