Skip to content

Commit f5a5ef1

Browse files
committed
The main interface has been modified
1.Add icons 2.Modify the display orientation of the tag
1 parent cbf1d9a commit f5a5ef1

File tree

12 files changed

+121
-12
lines changed

12 files changed

+121
-12
lines changed

src/WPF/.idea/.idea.GeneralUpdate.Tool/.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/WPF/.idea/.idea.GeneralUpdate.Tool/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/WPF/.idea/.idea.GeneralUpdate.Tool/.idea/projectSettingsUpdater.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/WPF/.idea/.idea.GeneralUpdate.Tool/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/WPF/.idea/.idea.GeneralUpdate.Tool/.idea/workspace.xml

Lines changed: 78 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
4.23 KB
Binary file not shown.
Binary file not shown.

src/WPF/GeneralUpdate.Bowl/BowlBootstrap.cs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,18 @@
22
using System;
33
using System.Threading.Tasks;
44
using Microsoft.SemanticKernel.Plugins.Core;
5-
//using RepoUtils;
5+
using System.Diagnostics;
66

77
namespace GeneralUpdate.Bowl
88
{
99
public class BowlBootstrap
1010
{
11-
public void test()
11+
public async void Test()
1212
{
13-
Console.WriteLine("======== Functions ========");
14-
15-
// Load native plugin
16-
var text = new TextPlugin();
17-
18-
// Use function without kernel
19-
var result = text.Uppercase("Ai4c research institute!");
20-
Console.WriteLine(result);
13+
var kernel = Kernel.Builder.Build();
14+
var time = kernel.ImportFunctions(new TimePlugin());
15+
var result = await kernel.RunAsync(time["Today"]);
16+
Debug.WriteLine(result);
2117
}
2218
}
2319
}

src/WPF/GeneralUpdate.Packet/GeneralUpdate.Packet.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
<UseWPF>true</UseWPF>
99
</PropertyGroup>
1010

11+
<ItemGroup>
12+
<None Remove="Resource\GeneralUpdate_h.png" />
13+
</ItemGroup>
14+
1115
<ItemGroup>
1216
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.1" />
1317
<PackageReference Include="GeneralUpdate.Differential" Version="1.4.3" />
@@ -19,4 +23,8 @@
1923
<ProjectReference Include="..\GeneralUpdate.Bowl\GeneralUpdate.Bowl.csproj" />
2024
</ItemGroup>
2125

26+
<ItemGroup>
27+
<Resource Include="Resource\GeneralUpdate_h.png" />
28+
</ItemGroup>
29+
2230
</Project>

src/WPF/GeneralUpdate.Packet/MainWindow.xaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
mc:Ignorable="d"
88
Title="GeneralUpdate.Packet" Height="600" Width="900">
99
<Grid>
10-
<TabControl ItemsSource="{Binding Modules}" SelectedItem="{Binding CurrentModule}">
10+
<Grid.RowDefinitions>
11+
<RowDefinition Height="100"></RowDefinition>
12+
<RowDefinition></RowDefinition>
13+
</Grid.RowDefinitions>
14+
<Image Source=".\Resource\GeneralUpdate_h.png"></Image>
15+
<TabControl Grid.Row="1" ItemsSource="{Binding Modules}" SelectedItem="{Binding CurrentModule}" TabStripPlacement="Left">
1116
<TabControl.ItemTemplate>
1217
<DataTemplate>
1318
<TextBlock Text="{Binding Name}" />

0 commit comments

Comments
 (0)