-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💾 Feat: Attributes for auto info file generation in future
- Loading branch information
1 parent
2c2a210
commit 2fd3d44
Showing
4 changed files
with
29 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Windows; | ||
using KitX.Contract.CSharp.Attributes; | ||
|
||
namespace TestPlugin.WPF.Core; | ||
|
||
[EntryClass] | ||
public class Functions | ||
{ | ||
[Function(nameof(HelloKitX))] | ||
public static void HelloKitX() | ||
{ | ||
MessageBox.Show("Hello KitX !"); | ||
} | ||
|
||
[Function(nameof(HelloAnything))] | ||
[Translation("DisplayName", "zh-CN", "打个招呼")] | ||
[Translation("DisplayName", "en-US", "Hello Anything")] | ||
public static void HelloAnything( | ||
[Parameter(nameof(name))] | ||
[Translation("DisplayName", "zh-CN", "名称")] | ||
[Translation("DisplayName", "en-US", "Name")] | ||
string name | ||
) | ||
{ | ||
MessageBox.Show($"Hello {name} !"); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters