Files
GeekDesk/Control/UserControls/Config/AboutControl.xaml.cs

50 lines
1.5 KiB
C#
Raw Permalink Normal View History

2021-05-31 17:31:16 +08:00
using System;
2021-07-16 17:34:16 +08:00
using System.Configuration;
2021-05-31 17:31:16 +08:00
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
2021-07-16 17:34:16 +08:00
using GeekDesk.Util;
using GeekDesk.Constant;
2021-05-31 17:31:16 +08:00
namespace GeekDesk.Control.UserControls.Config
2021-05-31 17:31:16 +08:00
{
/// <summary>
/// AboutControl.xaml 的交互逻辑
/// </summary>
public partial class AboutControl : UserControl
{
public AboutControl()
{
InitializeComponent();
2021-07-20 13:37:11 +08:00
AppInfo.Text += ConfigurationManager.AppSettings["Version"];
2021-07-16 17:34:16 +08:00
PublicWeChat.Source = ImageUtil.Base64ToBitmapImage(Constants.PUBLIC_WE_CHAT_IMG_BASE64);
WeChatCode.Source = ImageUtil.Base64ToBitmapImage(Constants.WE_CHAT_CODE_IMG_BASE64);
ZFBCode.Source = ImageUtil.Base64ToBitmapImage(Constants.ZFB_CODE_IMG_BASE64);
2021-05-31 17:31:16 +08:00
}
2021-08-20 16:50:24 +08:00
/// <summary>
/// 移动窗口
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void DragMove(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
if (e.LeftButton == MouseButtonState.Pressed)
{
Window.GetWindow(this).DragMove();
}
}
2021-05-31 17:31:16 +08:00
}
}