public FfdShowConfigureData(IntPtr func, IntPtr hWnd) { _delegate = Marshal.GetDelegateForFunctionPointer(func, typeof(FfdShowCfgDelegate)) as FfdShowCfgDelegate; if (_delegate == null) throw new ArgumentException("Cannot retrieve dynamic delegate"); _hwnd = hWnd; _isDynamicDelegate = true; }
public FfdShowConfigureData(IntPtr func, IntPtr hWnd) { _delegate = Marshal.GetDelegateForFunctionPointer(func, typeof(FfdShowCfgDelegate)) as FfdShowCfgDelegate; if (_delegate == null) { throw new ArgumentException("Cannot retrieve dynamic delegate"); } _hwnd = hWnd; _isDynamicDelegate = true; }
public FfdShowConfigureData(FfdShowCfgDelegate dlg, IntPtr hWnd) { _delegate = dlg; _hwnd = hWnd; }