@@ -7,5 +7,5 @@ |
||
7 | 7 | class PictureBox extends Control |
8 | 8 | { |
9 | 9 | protected ?string $classname = 'System.Windows.Forms.PictureBox'; |
10 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
10 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
11 | 11 | } |
@@ -7,5 +7,5 @@ |
||
7 | 7 | class PictureBox extends Control |
8 | 8 | { |
9 | 9 | protected ?string $classname = 'System.Windows.Forms.PictureBox'; |
10 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
10 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
11 | 11 | } |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | class TreeView extends Control |
6 | 6 | { |
7 | 7 | protected ?string $classname = 'System.Windows.Forms.TreeView'; |
8 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
8 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
9 | 9 | |
10 | 10 | public function get_path (): ?string |
11 | 11 | { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | class TreeNode extends Control |
27 | 27 | { |
28 | 28 | protected ?string $classname = 'System.Windows.Forms.TreeNode'; |
29 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
29 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
30 | 30 | |
31 | 31 | public function __construct (string $text = '') |
32 | 32 | { |
@@ -5,9 +5,9 @@ discard block |
||
5 | 5 | class TreeView extends Control |
6 | 6 | { |
7 | 7 | protected ?string $classname = 'System.Windows.Forms.TreeView'; |
8 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
8 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
9 | 9 | |
10 | - public function get_path (): ?string |
|
10 | + public function get_path(): ?string |
|
11 | 11 | { |
12 | 12 | try |
13 | 13 | { |
@@ -26,17 +26,17 @@ discard block |
||
26 | 26 | class TreeNode extends Control |
27 | 27 | { |
28 | 28 | protected ?string $classname = 'System.Windows.Forms.TreeNode'; |
29 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
29 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
30 | 30 | |
31 | - public function __construct (string $text = '') |
|
31 | + public function __construct(string $text = '') |
|
32 | 32 | { |
33 | - parent::__construct (); |
|
33 | + parent::__construct(); |
|
34 | 34 | |
35 | 35 | $this->text = $text; |
36 | 36 | } |
37 | 37 | |
38 | - public function get_path () |
|
38 | + public function get_path() |
|
39 | 39 | { |
40 | - return $this->getProperty ('FullPath'); |
|
40 | + return $this->getProperty('FullPath'); |
|
41 | 41 | } |
42 | 42 | } |
@@ -12,9 +12,7 @@ |
||
12 | 12 | try |
13 | 13 | { |
14 | 14 | $node = $this->selectedNode; |
15 | - } |
|
16 | - |
|
17 | - catch (\WinformsException $e) |
|
15 | + } catch (\WinformsException $e) |
|
18 | 16 | { |
19 | 17 | return null; |
20 | 18 | } |
@@ -5,5 +5,5 @@ |
||
5 | 5 | class RadioButton extends Control |
6 | 6 | { |
7 | 7 | protected ?string $classname = 'System.Windows.Forms.RadioButton'; |
8 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
8 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
9 | 9 | } |
@@ -5,5 +5,5 @@ |
||
5 | 5 | class RadioButton extends Control |
6 | 6 | { |
7 | 7 | protected ?string $classname = 'System.Windows.Forms.RadioButton'; |
8 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
8 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
9 | 9 | } |
@@ -11,22 +11,22 @@ |
||
11 | 11 | protected ?string $classname; |
12 | 12 | protected ?string $assembly; |
13 | 13 | |
14 | - public function __construct (...$args) |
|
14 | + public function __construct(...$args) |
|
15 | 15 | { |
16 | - parent::__construct ($this->classname, $this->assembly, ...$args); |
|
16 | + parent::__construct($this->classname, $this->assembly, ...$args); |
|
17 | 17 | |
18 | - Components::add ($this); |
|
18 | + Components::add($this); |
|
19 | 19 | } |
20 | 20 | |
21 | - public function dispose (): void |
|
21 | + public function dispose(): void |
|
22 | 22 | { |
23 | - VoidCore::removeObjects ($this->selector); |
|
24 | - Components::remove ($this->selector); |
|
23 | + VoidCore::removeObjects($this->selector); |
|
24 | + Components::remove($this->selector); |
|
25 | 25 | } |
26 | 26 | |
27 | - public function __destruct () |
|
27 | + public function __destruct() |
|
28 | 28 | { |
29 | - if (VoidCore::destructObject ($this->selector)) |
|
30 | - $this->dispose (); |
|
29 | + if (VoidCore::destructObject($this->selector)) |
|
30 | + $this->dispose(); |
|
31 | 31 | } |
32 | 32 | } |
@@ -26,7 +26,8 @@ |
||
26 | 26 | |
27 | 27 | public function __destruct () |
28 | 28 | { |
29 | - if (VoidCore::destructObject ($this->selector)) |
|
30 | - $this->dispose (); |
|
29 | + if (VoidCore::destructObject ($this->selector)) { |
|
30 | + $this->dispose (); |
|
31 | + } |
|
31 | 32 | } |
32 | 33 | } |
@@ -5,5 +5,5 @@ |
||
5 | 5 | class ImageList extends Control |
6 | 6 | { |
7 | 7 | protected ?string $classname = 'System.Windows.Forms.ImageList'; |
8 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
8 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
9 | 9 | } |
@@ -5,5 +5,5 @@ |
||
5 | 5 | class ImageList extends Control |
6 | 6 | { |
7 | 7 | protected ?string $classname = 'System.Windows.Forms.ImageList'; |
8 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
8 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
9 | 9 | } |
@@ -5,5 +5,5 @@ |
||
5 | 5 | class Timer extends Control |
6 | 6 | { |
7 | 7 | protected ?string $classname = 'System.Windows.Forms.Timer'; |
8 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
8 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
9 | 9 | } |
@@ -5,5 +5,5 @@ |
||
5 | 5 | class Timer extends Control |
6 | 6 | { |
7 | 7 | protected ?string $classname = 'System.Windows.Forms.Timer'; |
8 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
8 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
9 | 9 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | abstract class CommonDialog extends Component |
6 | 6 | { |
7 | 7 | protected ?string $classname = 'System.Windows.Forms.CommonDialog'; |
8 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
8 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
9 | 9 | |
10 | 10 | public function execute (): int |
11 | 11 | { |
@@ -5,10 +5,10 @@ |
||
5 | 5 | abstract class CommonDialog extends Component |
6 | 6 | { |
7 | 7 | protected ?string $classname = 'System.Windows.Forms.CommonDialog'; |
8 | - protected ?string $assembly = 'System.Windows.Forms'; |
|
8 | + protected ?string $assembly = 'System.Windows.Forms'; |
|
9 | 9 | |
10 | - public function execute (): int |
|
10 | + public function execute(): int |
|
11 | 11 | { |
12 | - return $this->callMethod ('ShowDialog'); |
|
12 | + return $this->callMethod('ShowDialog'); |
|
13 | 13 | } |
14 | 14 | } |
@@ -6,8 +6,8 @@ |
||
6 | 6 | { |
7 | 7 | protected ?string $classname = 'System.Windows.Forms.FolderBrowserDialog'; |
8 | 8 | |
9 | - public function get_path () |
|
9 | + public function get_path() |
|
10 | 10 | { |
11 | - return $this->getProperty ('SelectedPath'); |
|
11 | + return $this->getProperty('SelectedPath'); |
|
12 | 12 | } |
13 | 13 | } |
@@ -7,8 +7,8 @@ |
||
7 | 7 | protected ?string $classname = 'System.Windows.Forms.MessageBox'; |
8 | 8 | protected ?string $assembly = 'System.Windows.Forms'; |
9 | 9 | |
10 | - public function __construct () |
|
10 | + public function __construct() |
|
11 | 11 | { |
12 | - parent::__construct ($this->classname, $this->assembly); |
|
12 | + parent::__construct($this->classname, $this->assembly); |
|
13 | 13 | } |
14 | 14 | } |