WorkTool/Suspend.xaml.cs

(完整代码) 1KB

using System;
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.Shapes;

namespace WorkTool
{
    /// <summary>
    /// Suspend.xaml 的交互逻辑
    /// </summary>
    public partial class Suspend : Window
    {

        private MainWindow mainWin = null;

        private Suspend_ModelView mv;

        public Suspend()
        {
            InitializeComponent();
            mv = new Suspend_ModelView();

            this.DataContext = mv;
        }

        public Suspend(MainWindow mainWin) : this()
        {
            this.mainWin = mainWin;
        }

        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            this.DragMove();
        }

        /// <summary>
        /// 双击窗口
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            mainWin.Visibility = System.Windows.Visibility.Visible;
            mainWin.ShowInTaskbar = true;
            mainWin.Activate();
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。