MainForm.cs

(开头部分) 14KB

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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
using LonLog;
using System.Diagnostics;

namespace FileDump
{
    public partial class MainForm : Form
    {
        public static string CFG_FILE_NAME = "Config.dat";
        public static string LNK_FILE_NAME = "Link.dat";
        
        Dictionary<string, string> DumpList = new Dictionary<string, string>();
    
        public MainForm()
        {
            InitializeComponent();
        }

        protected override void OnLoad(EventArgs e)
        {                            
            WriteLog(string.Format("{0:G}, 程序启动\r\n", DateTime.Now));
            LinkStart();
            FileWatcher();
            //Test();

            notifyIcon1_DoubleClick(null, null);
            listDumpFile.Refresh();
            base.OnLoad(e);
        }

        protected override void OnClosing(CancelEventArgs e)
        {
            string text = "    ";
            if (listDumpFile.Items.Count > 0) text = "还有文件正在转储,";

            if (MessageBox.Show(string.Format("{0}是否退出本程序?", text), "退出确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel)
            {
                e.Cancel = true;
                return;
            }

           
            WriteLog(string.Format("{0:G}, 程序退出\r\n", DateTime.Now));

            base.OnClosing(e);
        }

        private void notifyIcon1_DoubleClick(object sender, EventArgs e)
        {
            if (this.WindowState == FormWindowState.Normal)
            {
后面还有 363 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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