xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
do_work_event_args.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
cancel_event_args.hpp
"
6
#include <xtd/any>
7
#include <cstdint>
8
10
namespace
xtd
{
12
namespace
forms
{
23
class
do_work_event_args
:
public
cancel_event_args
{
24
public
:
26
do_work_event_args
(
const
do_work_event_args
&
do_work_event_args
) =
default
;
27
do_work_event_args
& operator =(
const
do_work_event_args
&
do_work_event_args
) =
default
;
29
31
35
explicit
do_work_event_args
(
const
xtd::any_object
&
argument
) : argument_(
argument
) {}
37
39
43
xtd::any_object
argument
() const noexcept {
return
argument_;}
44
47
xtd::any_object
result
() const noexcept {
return
result_;}
50
void
result
(
const
xtd::any_object
& value) {result_ = value;}
52
53
private
:
54
xtd::any_object
argument_;
55
xtd::any_object
result_;
56
};
57
}
58
}
cancel_event_args.hpp
Contains xtd::forms::cancel_event_args event args.
xtd::any_object
Represent a polymorphic wrapper capable of holding any type.
Definition
any_object.hpp:29
xtd::forms::cancel_event_args::cancel_event_args
cancel_event_args()=default
Initializes a new instance of the cancel_event_args class with the cancel property set to false.
xtd::forms::do_work_event_args::argument
xtd::any_object argument() const noexcept
Gets a value that represents the argument of an asynchronous operation.
Definition
do_work_event_args.hpp:43
xtd::forms::do_work_event_args::do_work_event_args
do_work_event_args(const xtd::any_object &argument)
Initializes a new instance of the DoWorkEventArgs class.
Definition
do_work_event_args.hpp:35
xtd::forms::do_work_event_args::result
void result(const xtd::any_object &value)
Sets a value that represents the result of an asynchronous operation.
Definition
do_work_event_args.hpp:50
xtd::forms::do_work_event_args::result
xtd::any_object result() const noexcept
Gets a value that represents the result of an asynchronous operation.
Definition
do_work_event_args.hpp:47
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition
texts.hpp:219
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
Generated on
for xtd by
Gammasoft
. All rights reserved.