Main.cs
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using System.Xml;
using HostsEditor.Controls;
using HostsEditor.Controls.Head;
namespace HostsEditor
{
public partial class Main : Form
{
int startIndex = 0;
HeadTextBox HeadTextBoxElement = new HeadTextBox();
HeadCheckBox HeadCheckBoxElement = new HeadCheckBox();
HeadButton HeadButtonElement = new HeadButton();
HeadPanel HeadPanelElement = new HeadPanel();
BodyPanel BodyPanelElement = new BodyPanel();
BodyTextBox BodyTextBoxElement = new BodyTextBox();
ItemPanel ItemPanelElement = new ItemPanel();
public Main()
{
InitializeComponent();
// 初始化窗体宽度
this.Width = ShareData.ContainerSize.Width + (this.Width - this.ClientRectangle.Width);
}
/// <summary>
private void AddXMLLoad()
{
ArrayList used = new ArrayList();
// 挑出启用和禁用的
try
{
string[] contents = File.ReadAllLines(ShareData.HostsFileName);
foreach (string content in contents)
{
if (content.Length == 0 || content.IndexOf("#") == 0)
{
continue;
}
if (content.IndexOf('#') == -1)
{
used.Add(content);
}
}
}
catch (Exception ex)
后面还有 556 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。