增加 教程链接

This commit is contained in:
liufei
2022-01-09 16:00:02 +08:00
parent d82ce80374
commit 9eaca05012
2 changed files with 17 additions and 5 deletions

View File

@@ -35,9 +35,11 @@
</hc:UniformSpacingPanel> </hc:UniformSpacingPanel>
<TextBlock Text="注: 需配置正确的url方可加载远程图标!" Foreground="Red" Margin="10,95,-10,-92" /> <TextBlock Text="注: 需配置正确的url方可加载远程图标!" Foreground="Red" Margin="10,95,-10,-92" />
<hc:UniformSpacingPanel Spacing="10" Margin="246.206,124.551,-246.206,-124.551"> <hc:UniformSpacingPanel Spacing="10" Margin="203,125,-203,-125">
<Button Content="取消" Command="hc:ControlCommands.Close" <Button Content="取消" Command="hc:ControlCommands.Close" HorizontalAlignment="Stretch" Margin="-1,1,1,1" VerticalAlignment="Stretch"
/> />
<Button Content="教程" Click="Teach_Click"
Style="{StaticResource Btn1}"/>
<Button Content="保存" Click="Confirm_Click" <Button Content="保存" Click="Confirm_Click"
Command="hc:ControlCommands.Close" Command="hc:ControlCommands.Close"
Style="{StaticResource Btn1}"/> Style="{StaticResource Btn1}"/>

View File

@@ -3,6 +3,8 @@ using GeekDesk.Util;
using GeekDesk.ViewModel; using GeekDesk.ViewModel;
using Microsoft.Win32; using Microsoft.Win32;
using System; using System;
using System.Configuration;
using System.Diagnostics;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Media.Imaging; using System.Windows.Media.Imaging;
@@ -35,10 +37,18 @@ namespace GeekDesk.Control.Other
if (!StringUtil.IsEmpty(IconUrl.Text) && !StringUtil.IsEmpty(JsonUrl.Text)) if (!StringUtil.IsEmpty(IconUrl.Text) && !StringUtil.IsEmpty(JsonUrl.Text))
{ {
IconfontWindow.vm.IsSettingUrl = "true"; IconfontWindow.vm.IsSettingUrl = "true";
} else }
else
{ {
IconfontWindow.vm.IsSettingUrl = "false"; IconfontWindow.vm.IsSettingUrl = "false";
} }
} }
private void Teach_Click(object sender, RoutedEventArgs e)
{
string url = ConfigurationManager.AppSettings["CustomIconTeachUrl"];
Process.Start(url);
}
} }
} }