62 std::any
tag()
const {
return tag_;}
90 if (!main_form_->can_close_) main_form_->
close();
91 if (main_form_->can_close_) {
101 form* main_form_ =
nullptr;
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
static const event_args empty
Provides a value to use with events that do not have event data.
Definition: event_args.h:31
Represents an event.
Definition: event.h:21
Specifies the contextual information about an application thread.
Definition: application_context.h:26
void main_form(const form &main_form)
Sets the Form to use as context.
Definition: application_context.h:52
application_context()=default
Initializes a new instance of the application_context class with no context.
void exit_thread()
Terminates the message loop of the thread.
Definition: application_context.h:76
virtual void exit_thread_core()
Terminates the message loop of the thread.
Definition: application_context.h:82
form & main_form()
Gets or sets the Form to use as context.
Definition: application_context.h:48
std::any tag() const
Gets an object that contains data about the control.
Definition: application_context.h:62
const form & main_form() const
Gets the form to use as context.
Definition: application_context.h:44
application_context(const form &main_form)
Initializes a new instance of the application_context class with the specified Form.
Definition: application_context.h:33
virtual void on_main_form_closed(object &sender, const event_args &e)
Calls ExitThreadCore(), which raises the ThreadExit event.
Definition: application_context.h:88
void tag(std::any tag)
Sets an object that contains data about the control.
Definition: application_context.h:67
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition: object.h:26
event< control, event_handler > visible_changed
Occurs when the value of the visible property changes.
Definition: control.h:1402
event< application_context, event_handler > thread_exit
Occurs when the message loop of the thread should be terminated, by calling exit_thread().
Definition: application_context.h:71
event< control, event_handler > handle_destroyed
Occurs when the control's handle is in the process of being destroyed.
Definition: control.h:1143
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::object class.