📄 f_cleardata.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace PWMS.PerForm
{
public partial class F_ClearData : Form
{
public F_ClearData()
{
InitializeComponent();
}
ModuleClass.MyModule MyMC = new PWMS.ModuleClass.MyModule();
private void but_clear_Click(object sender, EventArgs e)
{
MyMC.Clear_Table(groupBox1.Controls, "Table_");
}
private void ALL_Table_MouseDown(object sender, MouseEventArgs e)
{
bool tt = false;
if (((CheckBox)sender).Checked == true)
tt = false;
else
tt = true;
foreach (Control C in groupBox1.Controls)
{
string sID = C.Name;
if (sID.IndexOf("Table_") > -1)
{
((CheckBox)C).Checked = tt;
}
}
}
private void Table_Branch_MouseUp(object sender, MouseEventArgs e)
{
if (((CheckBox)sender).Checked == false)
{
ALL_Table.Checked = false;
}
}
private void but_Close_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -