ObjectManager/UI/Common/Windows/Common_Windows_Update.xaml.cs

(开头部分) 9KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using ObjectManager.Common;
using ObjectManager.Models.Other;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
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;
using System.Xml;
using System.Xml.Linq;

namespace ObjectManager.UI.Common.Windows
{
    /// <summary>
    /// 更新提示框
    /// </summary>
    public partial class Common_Windows_Update : Window
    {
        public Common_Windows_Update()
        {
            InitializeComponent();
        }

        public Common_Windows_Update(bool mustUpdate):this()
        {
            //这里根据调用接口传递的是否必须更新参数来决定取消按钮是否可用
            //因为传递来的是必须更新那么可用状态要设置为flash故使用了!
            button_Cancel.IsEnabled = !mustUpdate;
        }


        private void button_Cancel_Click(object sender, RoutedEventArgs e)
        {
            //点击拒绝更新
            this.DialogResult = true;
        }

        private void button_OK_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            try
            {
                this.DragMove();
            }
            catch//防止一些拖拽异常
            {

            }
后面还有 239 行代码,解锁后查看完整代码

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

AI 解读

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

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