public InteractFunctionWrapper(Gnome.InteractFunction managed) { this.managed = managed; if (managed != null) { NativeDelegate = new InteractFunctionNative(NativeCallback); } }
public void RequestInteraction(Gnome.DialogType dialog_type, Gnome.InteractFunction function) { GnomeSharp.InteractFunctionWrapper function_wrapper = new GnomeSharp.InteractFunctionWrapper(function); gnome_client_request_interaction(Handle, (int)dialog_type, function_wrapper.NativeDelegate, IntPtr.Zero); }