Example #1
0
 public static System.Windows.Forms.DialogResult ShowSelectMultipleLayersDialog(IEnumerable<int> defaultLayerIndices, string dialogTitle, bool showNewLayerButton, out int[] layerIndices)
 {
   using (var array_int = new SimpleArrayInt(defaultLayerIndices))
   {
     IntPtr ptr_array_int = array_int.NonConstPointer();
     bool rc = UnsafeNativeMethods.RHC_RhinoSelectMultipleLayersDialog(dialogTitle, ptr_array_int, true, showNewLayerButton);
     layerIndices = rc ? array_int.ToArray() : new int[0];
     return rc ? System.Windows.Forms.DialogResult.OK : System.Windows.Forms.DialogResult.Cancel;
   }
 }