/// <summary> /// May or may not block the main thread depending on os. Assume it does /// not block and handle all results in the callback. /// </summary> /// <param name="callback">Called when the dialog is done showing with the results.</param> /// <returns></returns> public void showModal(ResultCallback callback) { DirDialogResults results = new DirDialogResults(callback); results.showNativeDialogModal(Parent, Message, StartPath); }
public void showModal(DirDialogResults obj, IntPtr parentPtr, String message, String startPath) { DirDialog_showModal(parentPtr, message, startPath, resultCb, GCHandle.ToIntPtr(obj.handle)); }