HttpSendForm.cs

(开头部分) 15KB

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

using AppManager.Config;
using AppManager.Icon;
using AppManager.Pojo;
using AppManager.Services;
using AppManager.Utils;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace AppManager {
    /// <summary>
    /// 发送记录窗口,用于查看,删除和重发相关的历史发送记录
    /// </summary>
    public partial class HttpSendForm : Form {
        private readonly HttpSendService _hss = HttpSendService.Instance;
        private readonly HttpSendParamService _httpSendParamService = HttpSendParamService.Instance;

        public HttpSendForm() {
            InitializeComponent();
        }

        private void HttpSendForm_Load(object sender, EventArgs e) {
            // 窗口大小加载
            var locationX = IniUtils.IniReadValue(Configs.SystemIniPath, Configs.IniSectionSend, Configs.IniKeySendFormLocationX);
            var locationY = IniUtils.IniReadValue(Configs.SystemIniPath, Configs.IniSectionSend, Configs.IniKeySendFormLocationY);
            var heightStr = IniUtils.IniReadValue(Configs.SystemIniPath, Configs.IniSectionSend, Configs.IniKeySendFormHeight);
            var widthStr = IniUtils.IniReadValue(Configs.SystemIniPath, Configs.IniSectionSend, Configs.IniKeySendFormWidth);
            if (!string.IsNullOrEmpty(heightStr)) {
                var height = int.Parse(heightStr);
                Size = new Size(Size.Width, height);
            }

            // 宽度设置
            if (!string.IsNullOrEmpty(widthStr)) {
                var width = int.Parse(widthStr);
                Size = new Size(width, Size.Height);
            }

            var x = Location.X;
            var y = Location.Y;
            if (!string.IsNullOrEmpty(locationX)) {
                x = Convert.ToInt32(locationX);
            }

            if (!string.IsNullOrEmpty(locationY)) {
                y = Convert.ToInt32(locationY);
            }

            Location = new Point(x, y);
            // 分割面板位置
            var splitDis =
                IniUtils.IniReadValue(Configs.SystemIniPath, Configs.IniSectionSend, Configs.IniKeySendSplitDis);
            if (!string.IsNullOrEmpty(splitDis)) {
                HttpSendSplitContainer.SplitterDistance = Convert.ToInt32(splitDis);
            }

            // 添加右键菜单
            var rightMenu = new ContextMenuStrip();
后面还有 251 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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