练手之作-C#编写比对和排序工具
本帖最后由 wushaominkk 于 2019-7-31 09:13 编辑using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
using System.Windows.Forms;
namespace toolkit
{
public class MainForm : Form
{
private HashSet<string> hashSetA = new HashSet<string>();
private HashSet<string> hashSetB = new HashSet<string>();
private Hashtable hashtable = new Hashtable();
private Stopwatch stopwatch = new Stopwatch();
private Thread thread0 = null;
private Thread thread1 = null;
private Thread thread2 = null;
private Thread thread3 = null;
private Thread thread4 = null;
private IContainer components = null;
private Label label1;
private TextBox tbSrcFile1;
private TextBox tbSrcFile2;
private Label label2;
private TextBox tbResultFile;
private Label label3;
private OpenFileDialog openFileDialog1;
private Button button1;
private Button button2;
private Button button3;
private Button button4;
private Button button5;
private Button button6;
private Button button7;
private Button button8;
private Label label4;
private int num;
private TabControl tabControl1;
private TabPage tabPage1;
private TabPage tabPage2;
private Label label11;
private Label label13;
private Label label12;
private Button button11;
private Button button12;
private Button button13;
private Button button14;
private TextBox textBox11;
private TextBox textBox12;
private TabPage tabPage3;
private GroupBox groupBox10;
private TextBox textBox2;
public MainForm()
{
this.InitializeComponent();
}
private void LoadSrcData()
{
this.hashSetA.Clear();
this.hashSetB.Clear();
num = 0;
using (StreamReader streamReader = new StreamReader(this.tbSrcFile1.Text))
{
string line;
while ((line = streamReader.ReadLine()) != null)
{
num++;
if (num % 20000 == 0)
{
this.label4.Text = num.ToString();
}
if (line.Trim() != "")
{
this.hashSetA.Add(line.Trim());
}
}
streamReader.Close();
}
using (StreamReader streamReader = new StreamReader(this.tbSrcFile2.Text))
{
string line;
while ((line = streamReader.ReadLine()) != null)
{
num++;
if (num % 20000 == 0)
{
this.label4.Text = num.ToString();
}
if (line.Trim() != "")
{
this.hashSetB.Add(line.Trim());
}
}
streamReader.Close();
}
}
private void button1_Click(object sender, EventArgs e)
{
if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
{
this.tbSrcFile1.Text = this.openFileDialog1.FileName;
}
}
private void button2_Click(object sender, EventArgs e)
{
if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
{
this.tbSrcFile2.Text = this.openFileDialog1.FileName;
}
}
private void button3_Click(object sender, EventArgs e)
{
if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
{
this.tbResultFile.Text = this.openFileDialog1.FileName;
}
}
private void button5_Click(object sender, EventArgs e)
{
if (this.tbSrcFile1.Text == "" || this.tbSrcFile2.Text == "")
{
MessageBox.Show("Not select file!");
}
else
{
this.thread0 = new Thread(new ThreadStart(this.mythread0));
Control.CheckForIllegalCrossThreadCalls = false;
this.thread0.Start();
}
}
public void mythread0()
{
stopwatch.Reset();
stopwatch.Start();
this.LoadSrcData();
this.hashSetA.ExceptWith(this.hashSetB);
using (StreamWriter streamWriter = new StreamWriter(this.tbResultFile.Text))
{
foreach (string current in this.hashSetA)
{
streamWriter.WriteLine(current);
}
streamWriter.Close();
}
this.label4.Text = num.ToString();
stopwatch.Stop();
MessageBox.Show(stopwatch.Elapsed.ToString(), "Finised, Elapsed:");
}
private void button7_Click(object sender, EventArgs e)
{
if (this.tbSrcFile1.Text == "" || this.tbSrcFile2.Text == "")
{
MessageBox.Show("Not select file!");
}
else
{
this.thread1 = new Thread(new ThreadStart(this.mythread1));
Control.CheckForIllegalCrossThreadCalls = false;
this.thread1.Start();
}
}
public void mythread1()
{
stopwatch.Reset();
stopwatch.Start();
this.LoadSrcData();
this.hashSetB.ExceptWith(this.hashSetA);
using (StreamWriter streamWriter = new StreamWriter(this.tbResultFile.Text))
{
foreach (string current in this.hashSetB)
{
streamWriter.WriteLine(current);
}
streamWriter.Close();
}
this.label4.Text = num.ToString();
stopwatch.Stop();
MessageBox.Show(stopwatch.Elapsed.ToString(), "Finised, Elapsed:");
}
private void button6_Click(object sender, EventArgs e)
{
if (this.tbSrcFile1.Text == "" || this.tbSrcFile2.Text == "")
{
MessageBox.Show("Not select file!");
}
else
{
this.thread2 = new Thread(new ThreadStart(this.mythread2));
Control.CheckForIllegalCrossThreadCalls = false;
this.thread2.Start();
}
}
public void mythread2()
{
stopwatch.Reset();
stopwatch.Start();
this.LoadSrcData();
this.hashSetA.IntersectWith(this.hashSetB);
using (StreamWriter streamWriter = new StreamWriter(this.tbResultFile.Text))
{
foreach (string current in this.hashSetA)
{
streamWriter.WriteLine(current);
}
streamWriter.Close();
}
this.label4.Text = num.ToString();
stopwatch.Stop();
MessageBox.Show(stopwatch.Elapsed.ToString(), "Finised, Elapsed:");
}
private void button4_Click(object sender, EventArgs e)
{
if (this.tbSrcFile1.Text == "" || this.tbSrcFile2.Text == "")
{
MessageBox.Show("Not select file!");
}
else
{
this.thread3 = new Thread(new ThreadStart(this.mythread3));
Control.CheckForIllegalCrossThreadCalls = false;
this.thread3.Start();
}
}
public void mythread3()
{
stopwatch.Reset();
stopwatch.Start();
this.LoadSrcData();
this.hashSetA.UnionWith(this.hashSetB);
using (StreamWriter streamWriter = new StreamWriter(this.tbResultFile.Text))
{
foreach (string current in this.hashSetA)
{
streamWriter.WriteLine(current);
}
streamWriter.Close();
}
this.label4.Text = num.ToString();
stopwatch.Stop();
MessageBox.Show(stopwatch.Elapsed.ToString(), "Finised, Elapsed:");
}
void Button8Click(object sender, EventArgs e)
{
this.Close();
}
void Button11Click(object sender, EventArgs e)
{
if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
{
this.textBox11.Text = this.openFileDialog1.FileName;
}
}
void Button12Click(object sender, EventArgs e)
{
if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
{
this.textBox12.Text = this.openFileDialog1.FileName;
}
}
void Button13Click(object sender, EventArgs e)
{
if (this.textBox12.Text == "")
{
MessageBox.Show("Not select Result File !");
}
else
{
this.thread4 = new Thread(new ThreadStart(this.mythread4));
Control.CheckForIllegalCrossThreadCalls = false;
this.thread4.Start();
}
}
public void mythread4()
{
Hashtable convert = new Hashtable();
stopwatch.Reset();
stopwatch.Start();
int num1 = 0;
StreamWriter streamWriter = new StreamWriter(this.textBox12.Text);
checked
{
using (StreamReader StreamReader = new StreamReader(this.textBox11.Text))
{
string line;
while ((line = StreamReader.ReadLine()) != null)
{
num1++;
if (num1 % 20000 == 0)
{
this.label13.Text = string.Format("{0:N0}", num1);
}
if (line != "")
{
string[] str = System.Text.RegularExpressions.Regex.Split(line,@"[ ]+");
if (!convert.Contains(str))
{
convert.Add(str, 1);
}
else
{
int num2 = Convert.ToInt32(convert]);
convert] = num2 + 1;
}
}
}
string[] array = new string;
int[] array2 = new int;
convert.Keys.CopyTo(array, 0);
convert.Values.CopyTo(array2, 0);
Array.Sort<int, string>(array2, array);
Array.Reverse(array2);
Array.Reverse(array);
for (int j = 0; j < convert.Count; j++)
{
streamWriter.WriteLine(array + "\t" + array2.ToString());
}
}
streamWriter.Close();
this.label13.Text = string.Format("{0:N0}", num1);
stopwatch.Stop();
MessageBox.Show(stopwatch.Elapsed.ToString(), "Finised, Elapsed:");
}
}
void Button14Click(object sender, EventArgs e)
{
this.Close();
}
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.label1 = new System.Windows.Forms.Label();
this.tbSrcFile1 = new System.Windows.Forms.TextBox();
this.tbSrcFile2 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.tbResultFile = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.button8 = new System.Windows.Forms.Button();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.label11 = new System.Windows.Forms.Label();
this.button14 = new System.Windows.Forms.Button();
this.textBox11 = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.textBox12 = new System.Windows.Forms.TextBox();
this.button13 = new System.Windows.Forms.Button();
this.button11 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.groupBox10 = new System.Windows.Forms.GroupBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.groupBox10.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(14, 14);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(116, 18);
this.label1.TabIndex = 0;
this.label1.Text = "SourceFile1:";
//
// tbSrcFile1
//
this.tbSrcFile1.Location = new System.Drawing.Point(134, 9);
this.tbSrcFile1.Name = "tbSrcFile1";
this.tbSrcFile1.Size = new System.Drawing.Size(397, 28);
this.tbSrcFile1.TabIndex = 1;
//
// tbSrcFile2
//
this.tbSrcFile2.Location = new System.Drawing.Point(134, 46);
this.tbSrcFile2.Name = "tbSrcFile2";
this.tbSrcFile2.Size = new System.Drawing.Size(397, 28);
this.tbSrcFile2.TabIndex = 4;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(14, 51);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(116, 18);
this.label2.TabIndex = 3;
this.label2.Text = "SourceFile2:";
//
// tbResultFile
//
this.tbResultFile.Location = new System.Drawing.Point(134, 83);
this.tbResultFile.Name = "tbResultFile";
this.tbResultFile.Size = new System.Drawing.Size(397, 28);
this.tbResultFile.TabIndex = 7;
this.tbResultFile.Text = "D:\\result_compare.txt";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(14, 88);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(107, 18);
this.label3.TabIndex = 6;
this.label3.Text = "ResultFile:";
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// button1
//
this.button1.Location = new System.Drawing.Point(543, 7);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(82, 32);
this.button1.TabIndex = 2;
this.button1.Text = "OPEN";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(543, 44);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(82, 32);
this.button2.TabIndex = 5;
this.button2.Text = "OPEN";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(543, 81);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(82, 32);
this.button3.TabIndex = 8;
this.button3.Text = "OPEN";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(450, 123);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(82, 44);
this.button4.TabIndex = 13;
this.button4.Text = "A+B";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button5
//
this.button5.Location = new System.Drawing.Point(133, 123);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(82, 44);
this.button5.TabIndex = 10;
this.button5.Text = "A-B";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// button6
//
this.button6.Location = new System.Drawing.Point(345, 123);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(82, 44);
this.button6.TabIndex = 12;
this.button6.Text = "A*B";
this.button6.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// button7
//
this.button7.Location = new System.Drawing.Point(239, 123);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(82, 44);
this.button7.TabIndex = 11;
this.button7.Text = "B-A";
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// label4
//
this.label4.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label4.Font = new System.Drawing.Font("宋体", 12F);
this.label4.Location = new System.Drawing.Point(14, 124);
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(107, 42);
this.label4.TabIndex = 9;
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// button8
//
this.button8.Location = new System.Drawing.Point(543, 123);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(82, 44);
this.button8.TabIndex = 14;
this.button8.Text = "EXIT";
this.button8.UseVisualStyleBackColor = true;
this.button8.Click += new System.EventHandler(this.Button8Click);
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Location = new System.Drawing.Point(18, 18);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(648, 213);
this.tabControl1.TabIndex = 15;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.label1);
this.tabPage1.Controls.Add(this.button8);
this.tabPage1.Controls.Add(this.tbSrcFile1);
this.tabPage1.Controls.Add(this.label4);
this.tabPage1.Controls.Add(this.label2);
this.tabPage1.Controls.Add(this.button7);
this.tabPage1.Controls.Add(this.tbSrcFile2);
this.tabPage1.Controls.Add(this.button6);
this.tabPage1.Controls.Add(this.label3);
this.tabPage1.Controls.Add(this.button5);
this.tabPage1.Controls.Add(this.tbResultFile);
this.tabPage1.Controls.Add(this.button4);
this.tabPage1.Controls.Add(this.button1);
this.tabPage1.Controls.Add(this.button3);
this.tabPage1.Controls.Add(this.button2);
this.tabPage1.Location = new System.Drawing.Point(4, 28);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(640, 181);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Compare Tool";
this.tabPage1.UseVisualStyleBackColor = true;
//
// tabPage2
//
this.tabPage2.Controls.Add(this.label11);
this.tabPage2.Controls.Add(this.button14);
this.tabPage2.Controls.Add(this.textBox11);
this.tabPage2.Controls.Add(this.label13);
this.tabPage2.Controls.Add(this.label12);
this.tabPage2.Controls.Add(this.textBox12);
this.tabPage2.Controls.Add(this.button13);
this.tabPage2.Controls.Add(this.button11);
this.tabPage2.Controls.Add(this.button12);
this.tabPage2.Location = new System.Drawing.Point(4, 28);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(640, 181);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Sort Tool";
this.tabPage2.UseVisualStyleBackColor = true;
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(14, 14);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(116, 18);
this.label11.TabIndex = 101;
this.label11.Text = "SourceFile1:";
//
// button14
//
this.button14.Location = new System.Drawing.Point(543, 123);
this.button14.Name = "button14";
this.button14.Size = new System.Drawing.Size(82, 44);
this.button14.TabIndex = 109;
this.button14.Text = "EXIT";
this.button14.UseVisualStyleBackColor = true;
this.button14.Click += new System.EventHandler(this.Button14Click);
//
// textBox11
//
this.textBox11.Location = new System.Drawing.Point(134, 9);
this.textBox11.Name = "textBox11";
this.textBox11.Size = new System.Drawing.Size(397, 28);
this.textBox11.TabIndex = 102;
//
// label13
//
this.label13.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label13.Font = new System.Drawing.Font("宋体", 12F);
this.label13.Location = new System.Drawing.Point(134, 124);
this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(194, 42);
this.label13.TabIndex = 107;
this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(14, 51);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(107, 18);
this.label12.TabIndex = 104;
this.label12.Text = "ResultFile:";
//
// textBox12
//
this.textBox12.Location = new System.Drawing.Point(134, 46);
this.textBox12.Name = "textBox12";
this.textBox12.Size = new System.Drawing.Size(397, 28);
this.textBox12.TabIndex = 105;
this.textBox12.Text = "D:\\result_sort.txt";
//
// button13
//
this.button13.Location = new System.Drawing.Point(336, 123);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(196, 44);
this.button13.TabIndex = 108;
this.button13.Text = "EXECUTE";
this.button13.UseVisualStyleBackColor = true;
this.button13.Click += new System.EventHandler(this.Button13Click);
//
// button11
//
this.button11.Location = new System.Drawing.Point(543, 7);
this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(82, 32);
this.button11.TabIndex = 103;
this.button11.Text = "OPEN";
this.button11.UseVisualStyleBackColor = true;
this.button11.Click += new System.EventHandler(this.Button11Click);
//
// button12
//
this.button12.Location = new System.Drawing.Point(543, 44);
this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(82, 32);
this.button12.TabIndex = 106;
this.button12.Text = "OPEN";
this.button12.UseVisualStyleBackColor = true;
this.button12.Click += new System.EventHandler(this.Button12Click);
//
// tabPage3
//
this.tabPage3.Controls.Add(this.groupBox10);
this.tabPage3.Location = new System.Drawing.Point(4, 28);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(640, 181);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "README";
this.tabPage3.UseVisualStyleBackColor = true;
//
// groupBox10
//
this.groupBox10.Controls.Add(this.textBox2);
this.groupBox10.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox10.Location = new System.Drawing.Point(7, 7);
this.groupBox10.Margin = new System.Windows.Forms.Padding(4);
this.groupBox10.Name = "groupBox10";
this.groupBox10.Padding = new System.Windows.Forms.Padding(4);
this.groupBox10.Size = new System.Drawing.Size(626, 167);
this.groupBox10.TabIndex = 305;
this.groupBox10.TabStop = false;
this.groupBox10.Text = "Update";
//
// textBox2
//
this.textBox2.BackColor = System.Drawing.SystemColors.InactiveBorder;
this.textBox2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox2.Location = new System.Drawing.Point(9, 30);
this.textBox2.Margin = new System.Windows.Forms.Padding(4);
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.textBox2.Size = new System.Drawing.Size(609, 129);
this.textBox2.TabIndex = 305;
this.textBox2.Text = " * Update: 2019/05/07 add Sort Tool data\r\n * Update: 2017/10/23 add Compare Tool " +
"data";
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(684, 249);
this.Controls.Add(this.tabControl1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "MainForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Compare/Sort Tool - 2019/05/07";
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.tabPage2.ResumeLayout(false);
this.tabPage2.PerformLayout();
this.tabPage3.ResumeLayout(false);
this.groupBox10.ResumeLayout(false);
this.groupBox10.PerformLayout();
this.ResumeLayout(false);
}
}
}
https://attach.52pojie.cn//forum/201907/30/140956rrh55tr2thuo3cc0.png?l
贴代码建议使用插入代码功能
【公告】发帖代码插入以及添加链接教程(有福利)
https://www.52pojie.cn/thread-713042-1-1.html
(出处: 吾爱破解论坛)
大神牛b 苏紫方璇 发表于 2019-7-30 22:37
贴代码建议使用插入代码功能
【公告】发帖代码插入以及添加链接教程(有福利)
https://www.52pojie.cn/t ...
修改下,果然舒服很多,感谢感谢!
页:
[1]