📄 configui.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Runtime.InteropServices ;
using System.IO;
using ConnectDBLibrary;
using ShowInfoLibrary;
using SetupOperDBLibrary;
//Download:http://www.codefans.net
namespace UI
{
/// <summary>
/// ConfigUI 的摘要说明。
/// </summary>
public class ConfigUI : System.Windows.Forms.Form
{
//----房间设置----------------------
bool isLookAll_RoomInfo=true;//为0时查看所有
//----管理员----------------------
private string aid="";
//------------------------------------------------------------------------
//指示该属性化方法由非托管动态链接库 (DLL) 作为静态入口点公开。引入皮肤接口 [关键代码]
[DllImport(@"appface.dll")] //注意路径
public static extern int SkinStart(string SkinFile,int nDefWinType,int CheckSum,int nType,
int hInstance,int nLen);
[DllImport(@"appface.dll")]
public static extern int SkinRemove() ;
[DllImport(@"appface.dll")]
public static extern int SkinWindowSet(IntPtr hWnd,int nSkintype);
[DllImport(@"appface.dll")]
public static extern int SkinWindowSetEx(IntPtr hWnd,int nSkintype,int nResourceId,
int nUrfLoadType,string SkinFile,int hInstance,int nLen);
//------------------------------------------------------------------------
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.TabPage tabPage5;
private System.Windows.Forms.TabPage tabPage6;
private System.Windows.Forms.TabPage tabPage7;
private System.Windows.Forms.TabPage tabPage8;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.ListView listView2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Button button10;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.Button button11;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox comboSkin;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.ColumnHeader columnHeader3;
private System.Windows.Forms.ColumnHeader columnHeader5;
private System.Windows.Forms.ColumnHeader columnHeader6;
private System.Windows.Forms.ColumnHeader columnHeader7;
private System.Windows.Forms.ColumnHeader columnHeader8;
private System.Windows.Forms.ColumnHeader columnHeader9;
private System.Windows.Forms.ColumnHeader columnHeader10;
private System.Windows.Forms.ColumnHeader columnHeader11;
private System.Windows.Forms.ColumnHeader columnHeader12;
private System.Windows.Forms.ListView listView3;
private System.Windows.Forms.Button button12;
private System.Windows.Forms.RadioButton radioButton3;
private System.Windows.Forms.RadioButton radioButton4;
private System.Windows.Forms.Button button13;
private System.Windows.Forms.Button button14;
private System.Windows.Forms.ListView listView4;
private System.Windows.Forms.ColumnHeader columnHeader13;
private System.Windows.Forms.ColumnHeader columnHeader14;
private System.Windows.Forms.ColumnHeader columnHeader16;
private System.Windows.Forms.ColumnHeader columnHeader17;
private System.Windows.Forms.ColumnHeader columnHeader18;
private System.Windows.Forms.Button button15;
private System.Windows.Forms.Button button16;
private System.Windows.Forms.Button button17;
private System.Windows.Forms.Button button18;
private System.Windows.Forms.ColumnHeader columnHeader19;
private System.Windows.Forms.Button button20;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.ListView listView5;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button19;
private System.Windows.Forms.ListView listView6;
private System.Windows.Forms.Button button21;
private System.Windows.Forms.Button button22;
private System.Windows.Forms.RadioButton radioButton5;
private System.Windows.Forms.RadioButton radioButton6;
private System.Windows.Forms.Button button23;
private System.Windows.Forms.Button button25;
private System.Windows.Forms.ColumnHeader columnHeader20;
private System.Windows.Forms.ColumnHeader columnHeader21;
private System.Windows.Forms.ColumnHeader columnHeader22;
private System.Windows.Forms.ColumnHeader columnHeader23;
private System.Windows.Forms.ColumnHeader columnHeader24;
private System.Windows.Forms.ColumnHeader columnHeader25;
private System.Windows.Forms.ColumnHeader columnHeader26;
private System.Windows.Forms.ColumnHeader columnHeader27;
private System.Windows.Forms.ColumnHeader columnHeader28;
private System.Windows.Forms.ColumnHeader columnHeader29;
private System.Windows.Forms.ColumnHeader columnHeader30;
private System.Windows.Forms.Button button24;
private System.Windows.Forms.ListView listView7;
private System.Windows.Forms.ColumnHeader columnHeader31;
private System.Windows.Forms.ColumnHeader columnHeader32;
private System.Windows.Forms.Button button27;
private System.Windows.Forms.Button button28;
private System.Windows.Forms.ListView listView8;
private System.Windows.Forms.ColumnHeader columnHeader33;
private System.Windows.Forms.ColumnHeader columnHeader34;
private System.Windows.Forms.ColumnHeader columnHeader35;
private System.Windows.Forms.Button button26;
private System.Windows.Forms.Button button29;
private System.Windows.Forms.Button button30;
private System.Windows.Forms.Button button31;
private System.Windows.Forms.ListView listView9;
private System.Windows.Forms.ColumnHeader columnHeader37;
private System.Windows.Forms.ColumnHeader columnHeader38;
private System.Windows.Forms.Button button32;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Button button33;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Button button34;
private System.Windows.Forms.Button button35;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.Button button36;
private System.Windows.Forms.Button button37;
private System.Windows.Forms.Button button38;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Button button39;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.ColumnHeader columnHeader4;
private System.Windows.Forms.ColumnHeader columnHeader15;
private System.Windows.Forms.ColumnHeader columnHeader36;
private System.Windows.Forms.ColumnHeader columnHeader39;
private System.Windows.Forms.ColumnHeader columnHeader40;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public ConfigUI()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.button3 = new System.Windows.Forms.Button();
this.listView1 = new System.Windows.Forms.ListView();
this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
this.listView2 = new System.Windows.Forms.ListView();
this.columnHeader7 = new System.Windows.Forms.ColumnHeader();
this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
this.columnHeader9 = new System.Windows.Forms.ColumnHeader();
this.columnHeader10 = new System.Windows.Forms.ColumnHeader();
this.columnHeader11 = new System.Windows.Forms.ColumnHeader();
this.columnHeader12 = new System.Windows.Forms.ColumnHeader();
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.button8 = new System.Windows.Forms.Button();
this.button9 = new System.Windows.Forms.Button();
this.button10 = new System.Windows.Forms.Button();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.radioButton5 = new System.Windows.Forms.RadioButton();
this.radioButton6 = new System.Windows.Forms.RadioButton();
this.button2 = new System.Windows.Forms.Button();
this.listView5 = new System.Windows.Forms.ListView();
this.columnHeader20 = new System.Windows.Forms.ColumnHeader();
this.columnHeader21 = new System.Windows.Forms.ColumnHeader();
this.button19 = new System.Windows.Forms.Button();
this.listView6 = new System.Windows.Forms.ListView();
this.columnHeader22 = new System.Windows.Forms.ColumnHeader();
this.columnHeader23 = new System.Windows.Forms.ColumnHeader();
this.columnHeader24 = new System.Windows.Forms.ColumnHeader();
this.columnHeader25 = new System.Windows.Forms.ColumnHeader();
this.columnHeader26 = new System.Windows.Forms.ColumnHeader();
this.columnHeader27 = new System.Windows.Forms.ColumnHeader();
this.columnHeader28 = new System.Windows.Forms.ColumnHeader();
this.columnHeader29 = new System.Windows.Forms.ColumnHeader();
this.columnHeader30 = new System.Windows.Forms.ColumnHeader();
this.button21 = new System.Windows.Forms.Button();
this.button22 = new System.Windows.Forms.Button();
this.button23 = new System.Windows.Forms.Button();
this.button25 = new System.Windows.Forms.Button();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.radioButton3 = new System.Windows.Forms.RadioButton();
this.button12 = new System.Windows.Forms.Button();
this.listView3 = new System.Windows.Forms.ListView();
this.columnHeader13 = new System.Windows.Forms.ColumnHeader();
this.columnHeader14 = new System.Windows.Forms.ColumnHeader();
this.radioButton4 = new System.Windows.Forms.RadioButton();
this.button13 = new System.Windows.Forms.Button();
this.button14 = new System.Windows.Forms.Button();
this.listView4 = new System.Windows.Forms.ListView();
this.columnHeader16 = new System.Windows.Forms.ColumnHeader();
this.columnHeader17 = new System.Windows.Forms.ColumnHeader();
this.columnHeader19 = new System.Windows.Forms.ColumnHeader();
this.columnHeader18 = new System.Windows.Forms.ColumnHeader();
this.columnHeader15 = new System.Windows.Forms.ColumnHeader();
this.columnHeader36 = new System.Windows.Forms.ColumnHeader();
this.button15 = new System.Windows.Forms.Button();
this.button16 = new System.Windows.Forms.Button();
this.button17 = new System.Windows.Forms.Button();
this.button18 = new System.Windows.Forms.Button();
this.button20 = new System.Windows.Forms.Button();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.button24 = new System.Windows.Forms.Button();
this.listView7 = new System.Windows.Forms.ListView();
this.columnHeader31 = new System.Windows.Forms.ColumnHeader();
this.columnHeader32 = new System.Windows.Forms.ColumnHeader();
this.columnHeader39 = new System.Windows.Forms.ColumnHeader();
this.button27 = new System.Windows.Forms.Button();
this.button28 = new System.Windows.Forms.Button();
this.button33 = new System.Windows.Forms.Button();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.listView8 = new System.Windows.Forms.ListView();
this.columnHeader33 = new System.Windows.Forms.ColumnHeader();
this.columnHeader34 = new System.Windows.Forms.ColumnHeader();
this.columnHeader35 = new System.Windows.Forms.ColumnHeader();
this.columnHeader40 = new System.Windows.Forms.ColumnHeader();
this.button26 = new System.Windows.Forms.Button();
this.button29 = new System.Windows.Forms.Button();
this.button30 = new System.Windows.Forms.Button();
this.button31 = new System.Windows.Forms.Button();
this.button32 = new System.Windows.Forms.Button();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.listView9 = new System.Windows.Forms.ListView();
this.columnHeader37 = new System.Windows.Forms.ColumnHeader();
this.columnHeader38 = new System.Windows.Forms.ColumnHeader();
this.tabPage6 = new System.Windows.Forms.TabPage();
this.button34 = new System.Windows.Forms.Button();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.button35 = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.tabPage7 = new System.Windows.Forms.TabPage();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.button39 = new System.Windows.Forms.Button();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.button38 = new System.Windows.Forms.Button();
this.label15 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.textBox6 = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.button37 = new System.Windows.Forms.Button();
this.button36 = new System.Windows.Forms.Button();
this.textBox7 = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.textBox5 = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.label11 = new System.Windows.Forms.Label();
this.tabPage8 = new System.Windows.Forms.TabPage();
this.label1 = new System.Windows.Forms.Label();
this.btnClose = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.comboSkin = new System.Windows.Forms.ComboBox();
this.button11 = new System.Windows.Forms.Button();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage3.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage4.SuspendLayout();
this.tabPage5.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.tabPage6.SuspendLayout();
this.tabPage7.SuspendLayout();
this.tabPage8.SuspendLayout();
this.SuspendLayout();
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -