Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 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;
     }
 }