public void Load() { purple_blist_load(); IntPtr sig_handle = purple_blist_get_handle(); bsigned_on_evt = new BuddySignedOn(bsigned_on); PurpleSignal.Connect(sig_handle, "buddy-signed-on", Marshal.GetFunctionPointerForDelegate(bsigned_on_evt), IntPtr.Zero); bsigned_off_evt = new BuddySignedOn(bsigned_off); PurpleSignal.Connect(sig_handle, "buddy-signed-off", Marshal.GetFunctionPointerForDelegate(bsigned_off_evt), IntPtr.Zero); }