📄 systemmanagerform.cs
字号:
#region 窗体加载事件处理=======================================
private void SystemManagerForm_Load(object sender, System.EventArgs e)
{
//创建Province实例
this.dsProvince = new DataAccess.City().GetProvince();
//取动计时器
this.tmClock.Enabled = true;
//状态栏处理
this.StatusBar();
//设置最小化关闭按钮
this.DrawButton(1);
this.DrawButton(2);
//省市的总记录数
this.provinceTotalRecordCount = this.dsProvince.Tables[0].Rows.Count;
//浏览省市记录
this.BrowserProvinceData();
//省市控件状态初始化处理
this.ProvinceControlProcess();
//填充ProvinceDataGrid
this.FilllvProvince();
// 设置Province的数据
this.GetProvinceInfo();
//城市控件状态初始化处理
this.CityControlProcess();
//显示TreeView
this.ViewCityTree();
}
#endregion
#region 清理资源===============================================
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#endregion
#region 构造函数===============================================
public SystemManagerForm()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
#endregion
#region Windows Form Designer generated code===================
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SystemManagerForm));
this.plLeft = new System.Windows.Forms.Panel();
this.pictureBox8 = new System.Windows.Forms.PictureBox();
this.imageList2 = new System.Windows.Forms.ImageList(this.components);
this.plTop = new System.Windows.Forms.Panel();
this.btnClose = new System.Windows.Forms.PictureBox();
this.btnMax = new System.Windows.Forms.PictureBox();
this.btnMin = new System.Windows.Forms.PictureBox();
this.pictureBox7 = new System.Windows.Forms.PictureBox();
this.pictureBox6 = new System.Windows.Forms.PictureBox();
this.pictureBox5 = new System.Windows.Forms.PictureBox();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.plBotton = new System.Windows.Forms.Panel();
this.pictureBox12 = new System.Windows.Forms.PictureBox();
this.pictureBox11 = new System.Windows.Forms.PictureBox();
this.pictureBox10 = new System.Windows.Forms.PictureBox();
this.plRight = new System.Windows.Forms.Panel();
this.pictureBox9 = new System.Windows.Forms.PictureBox();
this.panel3 = new System.Windows.Forms.Panel();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.txbProvince = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.lvCity = new System.Windows.Forms.ListView();
this.CityNameHeader = new System.Windows.Forms.ColumnHeader();
this.CityDescriptionHeader = new System.Windows.Forms.ColumnHeader();
this.label6 = new System.Windows.Forms.Label();
this.btnDeleteCity = new System.Windows.Forms.Button();
this.btnModifyCity = new System.Windows.Forms.Button();
this.btnAddNewCity = new System.Windows.Forms.Button();
this.btnOkCity = new System.Windows.Forms.Button();
this.btnLastCity = new System.Windows.Forms.Button();
this.btnNextCity = new System.Windows.Forms.Button();
this.btnPrvCity = new System.Windows.Forms.Button();
this.btnFirstCity = new System.Windows.Forms.Button();
this.txbCityDescription = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.txbCityName = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lvProvince = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.btnDeleteProvince = new System.Windows.Forms.Button();
this.btnModifyProvince = new System.Windows.Forms.Button();
this.btnAddProvince = new System.Windows.Forms.Button();
this.btnOkProvince = new System.Windows.Forms.Button();
this.btnLastProvince = new System.Windows.Forms.Button();
this.btnNextProvince = new System.Windows.Forms.Button();
this.btnPrvProvince = new System.Windows.Forms.Button();
this.btnFirstProvince = new System.Windows.Forms.Button();
this.txbProvinceDescription = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.txbProvinceName = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.panel6 = new System.Windows.Forms.Panel();
this.lvBusList = new System.Windows.Forms.ListView();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
this.columnHeader7 = new System.Windows.Forms.ColumnHeader();
this.txbEndStop = new System.Windows.Forms.TextBox();
this.label16 = new System.Windows.Forms.Label();
this.txbStartStop = new System.Windows.Forms.TextBox();
this.label20 = new System.Windows.Forms.Label();
this.txbBusType = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
this.lbBusInfo = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.btnDeleteBus = new System.Windows.Forms.Button();
this.btnModifyBus = new System.Windows.Forms.Button();
this.btnAddNewBus = new System.Windows.Forms.Button();
this.btnOkBus = new System.Windows.Forms.Button();
this.btnLastBus = new System.Windows.Forms.Button();
this.btnNextBus = new System.Windows.Forms.Button();
this.btnPrvBus = new System.Windows.Forms.Button();
this.btnFirstBus = new System.Windows.Forms.Button();
this.txbBusDescription = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.txbBusName = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.tvCity1 = new System.Windows.Forms.TreeView();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.panel7 = new System.Windows.Forms.Panel();
this.lvStopList = new System.Windows.Forms.ListView();
this.clStopName = new System.Windows.Forms.ColumnHeader();
this.clStopDescription = new System.Windows.Forms.ColumnHeader();
this.lbStopInfo = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.btnDeleteStop = new System.Windows.Forms.Button();
this.btnModifyStop = new System.Windows.Forms.Button();
this.btnAddNewStop = new System.Windows.Forms.Button();
this.btnOkStop = new System.Windows.Forms.Button();
this.btnLastStop = new System.Windows.Forms.Button();
this.btnNextStop = new System.Windows.Forms.Button();
this.btnPrvStop = new System.Windows.Forms.Button();
this.btnFirstStop = new System.Windows.Forms.Button();
this.txbStopDescription = new System.Windows.Forms.TextBox();
this.label19 = new System.Windows.Forms.Label();
this.txbStopName = new System.Windows.Forms.TextBox();
this.label23 = new System.Windows.Forms.Label();
this.tvCity2 = new System.Windows.Forms.TreeView();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.panel2 = new System.Windows.Forms.Panel();
this.txbBusMemo = new System.Windows.Forms.TextBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.btnSearch = new System.Windows.Forms.Button();
this.txbSearch = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.btnSave = new System.Windows.Forms.Button();
this.lstBusList2 = new System.Windows.Forms.ListBox();
this.btnDeleteAll = new System.Windows.Forms.Button();
this.btnDelete = new System.Windows.Forms.Button();
this.btnAdd = new System.Windows.Forms.Button();
this.btnAddAll = new System.Windows.Forms.Button();
this.lstBusList1 = new System.Windows.Forms.ListBox();
this.panel8 = new System.Windows.Forms.Panel();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.lvStop = new System.Windows.Forms.ListView();
this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
this.columnHeader9 = new System.Windows.Forms.ColumnHeader();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.lvBus = new System.Windows.Forms.ListView();
this.columnHeader10 = new System.Windows.Forms.ColumnHeader();
this.columnHeader11 = new System.Windows.Forms.ColumnHeader();
this.columnHeader12 = new System.Windows.Forms.ColumnHeader();
this.columnHeader13 = new System.Windows.Forms.ColumnHeader();
this.columnHeader14 = new System.Windows.Forms.ColumnHeader();
this.tvCity3 = new System.Windows.Forms.TreeView();
this.panel4 = new System.Windows.Forms.Panel();
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel3 = new System.Windows.Forms.StatusBarPanel();
this.panel1 = new System.Windows.Forms.Panel();
this.toolBar1 = new System.Windows.Forms.ToolBar();
this.tbtnHelp = new System.Windows.Forms.ToolBarButton();
this.tbtnAbout = new System.Windows.Forms.ToolBarButton();
this.tbtnClose = new System.Windows.Forms.ToolBarButton();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.tmClock = new System.Windows.Forms.Timer(this.components);
this.imageList3 = new System.Windows.Forms.ImageList(this.components);
this.timerHide = new System.Windows.Forms.Timer(this.components);
this.plLeft.SuspendLayout();
this.plTop.SuspendLayout();
this.plBotton.SuspendLayout();
this.plRight.SuspendLayout();
this.panel3.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.panel6.SuspendLayout();
this.tabPage3.SuspendLayout();
this.panel7.SuspendLayout();
this.tabPage4.SuspendLayout();
this.panel2.SuspendLayout();
this.groupBox4.SuspendLayout();
this.panel8.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox3.SuspendLayout();
this.panel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// plLeft
//
this.plLeft.Controls.AddRange(new System.Windows.Forms.Control[] {
this.pictureBox8});
this.plLeft.Dock = System.Windows.Forms.DockStyle.Left;
this.plLeft.Location = new System.Drawing.Point(0, 26);
this.plLeft.Name = "plLeft";
this.plLeft.Size = new System.Drawing.Size(4, 420);
this.plLeft.TabIndex = 32;
//
// pictureBox8
//
this.pictureBox8.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox8.BackgroundImage")));
this.pictureBox8.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox8.Name = "pictureBox8";
this.pictureBox8.Size = new System.Drawing.Size(4, 420);
this.pictureBox8.TabIndex = 0;
this.pictureBox8.TabStop = false;
//
// imageList2
//
this.imageList2.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
this.imageList2.ImageSize = new System.Drawing.Size(16, 16);
this.imageList2.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList2.ImageStream")));
this.imageList2.TransparentColor = System.Drawing.Color.Transparent;
//
// plTop
//
this.plTop.Controls.AddRange(new System.Windows.Forms.Control[] {
this.btnClose,
this.btnMax,
this.btnMin,
this.pictureBox7,
this.pictureBox6,
this.pictureBox5,
this.pictureBox4,
this.pictureBox3,
this.pictureBox2,
this.pictureBox1});
this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
this.plTop.Name = "plTop";
this.plTop.Size = new System.Drawing.Size(600, 26);
this.plTop.TabIndex = 34;
//
// btnClose
//
this.btnClose.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnClose.Image = ((System.Drawing.Bitmap)(resources.GetObject("btnClose.Image")));
this.btnClose.Location = new System.Drawing.Point(572, 3);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(20, 20);
this.btnClose.TabIndex = 14;
this.btnClose.TabStop = false;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
this.btnClose.MouseMove += new System.Windows.Forms.MouseEventHandler(this.btnClose_MouseMove);
this.btnClose.MouseLeave += new System.EventHandler(this.btnClose_MouseLeave);
this.btnClose.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnClose_MouseDown);
//
// btnMax
//
this.btnMax.Image = ((System.Drawing.Bitmap)(resources.GetObject("btnMax.Image")));
this.btnMax.Location = new System.Drawing.Point(548, 3);
this.btnMax.Name = "btnMax";
this.btnMax.Size = new System.Drawing.Size(20, 20);
this.btnMax.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.btnMax.TabIndex = 12;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -