Skip to content

Commit e9edc1a

Browse files
author
user123
committed
add
1 parent 5fed661 commit e9edc1a

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

Services.App/LogWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<StackPanel Orientation="Horizontal" Spacing="8" HorizontalAlignment="Right">
4040
<Button x:Name="RefreshButton" Content="刷新" Click="OnRefreshClick"/>
4141
<Button x:Name="OpenFolderButton" Content="打开日志文件" Click="OnOpenFolderClick"/>
42-
<Button Content="关闭" Click="OnCloseClick" Style="{StaticResource AccentButtonStyle}"/>
42+
<Button Content="关闭" Click="OnCloseClick"/>
4343
</StackPanel>
4444
</Grid>
4545
</Grid>

Services.App/LogWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public LogWindow(string serviceId, string displayName, LogManager logManager)
2929
var hWnd = WindowNative.GetWindowHandle(this);
3030
var windowId = Microsoft.UI.Win32Interop.GetWindowIdFromWindow(hWnd);
3131
_appWindow = AppWindow.GetFromWindowId(windowId);
32-
_appWindow.Resize(new Windows.Graphics.SizeInt32(1000, 700));
32+
_appWindow.Resize(new Windows.Graphics.SizeInt32(1200, 800));
3333

3434
_timer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(2) };
3535
_timer.Tick += OnTimerTick;

Services.App/MainWindow.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<ColumnDefinition Width="*"/>
2727
</Grid.ColumnDefinitions>
2828
<StackPanel Orientation="Horizontal" Grid.Column="0" Padding="16,0,0,0" VerticalAlignment="Center" Spacing="12">
29-
<TextBlock Text="Windows 服务管理器" Style="{StaticResource CaptionTextBlockStyle}" FontWeight="SemiBold"/>
29+
<TextBlock Text="ServicesApp" Style="{StaticResource CaptionTextBlockStyle}" FontWeight="SemiBold"/>
3030
</StackPanel>
3131
</Grid>
3232

@@ -104,14 +104,14 @@
104104
<TextBlock Grid.Column="2" Text="{Binding ExePath}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis" ToolTipService.ToolTip="{Binding ExePath}" Opacity="0.7" Style="{StaticResource CaptionTextBlockStyle}"/>
105105

106106
<StackPanel Grid.Column="3" Orientation="Horizontal" Spacing="4">
107-
<Button Click="OnStartClick" Tag="{Binding Id}" ToolTipService.ToolTip="启动" Style="{StaticResource AccentButtonStyle}" CornerRadius="4">
107+
<Button Click="OnStartClick" Tag="{Binding Id}" ToolTipService.ToolTip="启动" CornerRadius="4">
108108
<FontIcon Glyph="&#xE768;" FontSize="12"/>
109109
</Button>
110110
<Button Click="OnStopClick" Tag="{Binding Id}" ToolTipService.ToolTip="停止" CornerRadius="4">
111111
<FontIcon Glyph="&#xE71A;" FontSize="12"/>
112112
</Button>
113113
<Button Click="OnLogsClick" Tag="{Binding Id}" ToolTipService.ToolTip="日志" CornerRadius="4">
114-
<FontIcon Glyph="&#xE9F5;" FontSize="12"/>
114+
<FontIcon Glyph="&#xE9F9;" FontSize="12"/>
115115
</Button>
116116
<Button Click="OnEditClick" Tag="{Binding Id}" ToolTipService.ToolTip="编辑" CornerRadius="4">
117117
<FontIcon Glyph="&#xE70F;" FontSize="12"/>

Services.App/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public MainWindow()
5151
_logManager = new LogManager();
5252

5353
LoadServices();
54-
Title = "Windows 服务管理器";
54+
Title = "ServicesApp";
5555

5656
this.Closed += (s, e) => _serviceManager.Dispose();
5757
}
@@ -61,7 +61,7 @@ private void InitializeTrayIcon()
6161
try
6262
{
6363
_notifyIcon = new System.Windows.Forms.NotifyIcon();
64-
_notifyIcon.Text = "Windows 服务管理器";
64+
_notifyIcon.Text = "ServicesApp";
6565

6666
var iconPath = System.IO.Path.Combine(AppContext.BaseDirectory, "Assets", "icon.ico");
6767
if (System.IO.File.Exists(iconPath))

Services.App/Services.App.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
<DefineConstants>DISABLE_XAML_GENERATED_MAIN</DefineConstants>
2121
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2222
<Nullable>enable</Nullable>
23+
<Product>ServicesApp</Product>
24+
<AssemblyName>ServicesApp</AssemblyName>
2325
</PropertyGroup>
2426

2527
<ItemGroup>

0 commit comments

Comments
 (0)