示例#1
0
            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;
            }
示例#2
0
            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;
            }
示例#3
0
 public FfdShowConfigureData(FfdShowCfgDelegate dlg, IntPtr hWnd)
 {
     _delegate = dlg;
     _hwnd = hWnd;
 }
示例#4
0
 public FfdShowConfigureData(FfdShowCfgDelegate dlg, IntPtr hWnd)
 {
     _delegate = dlg;
     _hwnd     = hWnd;
 }