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
|
|
|
|
|
2021-06-17 17:28:04 +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-04 10:12:32 +08:00
|
|
|
|
|
2021-08-20 16:50:24 +08:00
|
|
|
|
|
2021-08-04 10:12:32 +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();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-05-10 16:14:51 +08:00
|
|
|
|
|
|
|
|
|
|
private void SC_MouseEnter(object sender, MouseEventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Cursor = Cursors.Hand;
|
|
|
|
|
|
}
|
|
|
|
|
|
private void SC_MouseLeave(object sender, MouseEventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Cursor = Cursors.Arrow;
|
|
|
|
|
|
}
|
2021-05-31 17:31:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|