Skip to content

Commit a9f2e98

Browse files
committed
Update manual_tests.cpp
1 parent f841c05 commit a9f2e98

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed
Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
#include <xtd/xtd>
22

3-
auto main()->int {
4-
auto form1 = form::create("form1");
5-
auto button1 = button::create(form1, "Click me", {10, 10});
6-
button1.click += [&] {message_box::show(form1, "Hello !");};
7-
application::run(form1);
3+
namespace manual_tests {
4+
class form1 : public form {
5+
public:
6+
static auto main() {
7+
application::system_controls(true);
8+
application::run(form1 {});
9+
}
10+
11+
form1() {
12+
text("form1");
13+
button1.click += [&] {message_box::show(*this, "Hello, World! !");};
14+
}
15+
16+
private:
17+
button button1 = button::create(*this, "button1", {10, 10});
18+
};
819
}
20+
21+
startup_(manual_tests::form1::main);

0 commit comments

Comments
 (0)