internal PopupListEvent(IntPtr ev, PopupListDialog dia)
            : base(ev, dia)
        {
            int    count;
            IntPtr ptr;

            if (PopupListDialog.dialog_event_get_popuplist_selected_indices(DangerousGetHandle(), out ptr, out count) != BPS.BPS_SUCCESS)
            {
                Util.ThrowExceptionForLastErrno();
            }
            using (var handle = new BPSIntArray(ptr, count))
            {
                SelectedIndicies = handle;
            }
        }
 internal PopupListEvent(IntPtr ev, PopupListDialog dia)
     : base(ev, dia)
 {
     int count;
     IntPtr ptr;
     if (PopupListDialog.dialog_event_get_popuplist_selected_indices(DangerousGetHandle(), out ptr, out count) != BPS.BPS_SUCCESS)
     {
         Util.ThrowExceptionForLastErrno();
     }
     using (var handle = new BPSIntArray(ptr, count))
     {
         SelectedIndicies = handle;
     }
 }