xtd 0.2.0
Loading...
Searching...
No Matches
do_work_event_args.h
Go to the documentation of this file.
1
4#pragma once
5#include "cancel_event_args.h"
6#include <xtd/any>
7#include <cstdint>
8
10namespace xtd {
12 namespace forms {
24 public:
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 std::any& argument) : argument_(argument) {}
37
39
43 std::any argument() const noexcept {return argument_;}
44
47 std::any result() const noexcept {return result_;}
50 void result(std::any value) {result_ = value;}
52
53 private:
54 std::any argument_;
55 std::any result_;
56 };
57 }
58}
Contains xtd::forms::cancel_event_args event args.
Provides data for a cancelable event.
Definition cancel_event_args.h:22
Provides data for the xtd::forms::background_worker::do_work event handler.
Definition do_work_event_args.h:23
std::any argument() const noexcept
Gets a value that represents the argument of an asynchronous operation.
Definition do_work_event_args.h:43
do_work_event_args(const std::any &argument)
Initializes a new instance of the DoWorkEventArgs class.
Definition do_work_event_args.h:35
std::any result() const noexcept
Gets a value that represents the result of an asynchronous operation.
Definition do_work_event_args.h:47
void result(std::any value)
Sets a value that represents the result of an asynchronous operation.
Definition do_work_event_args.h:50
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10