242 template<const
bool multiselect,
typename output_t>
247 .initial_directory(initial_directory)
249 .check_file_exists((options & open_file_box_options::check_file_exists) == open_file_box_options::check_file_exists)
250 .dereference_link((options & open_file_box_options::dereference_link) == open_file_box_options::dereference_link)
251 .validate_names((options & open_file_box_options::validate_names) == open_file_box_options::validate_names)
252 .restore_directory((options & open_file_box_options::restore_directory) == open_file_box_options::restore_directory)
253 .auto_upgrade_enabled((options & open_file_box_options::enable_auto_upgrade) == open_file_box_options::enable_auto_upgrade)
254 .show_hidden_files((options & open_file_box_options::show_hidden_files) == open_file_box_options::show_hidden_files)
255 .show_help((options & open_file_box_options::show_help) == open_file_box_options::show_help)
256 .show_preview((options & open_file_box_options::show_preview) == open_file_box_options::show_preview)
257 .support_multi_dotted_extensions((options & open_file_box_options::support_multi_dotted_extensions) == open_file_box_options::support_multi_dotted_extensions);
258 if constexpr(!multiselect) dialog.file_name(output);
259 const auto res = owner ? dialog.show_sheet_dialog(*owner) : dialog.show_dialog();
260 if (res != dialog_result::ok)
return res;
261 if constexpr(multiselect) output = dialog.file_names();
262 else output = dialog.file_name();
Represents text as a sequence of character units.
Definition basic_string.hpp:79
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.hpp:124
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::forms::open_file_box_options control.
Contains xtd::forms::open_file_dialog dialog.