Пример #1
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.textBoxWaitKey                           = this.xmlComponentLoader1.GetControlByName <ToolStripTextBox>("textBoxWaitKey");
     this.btnQuery                                 = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnQuery");
     this.btnQuery.Visible                         = false;
     this.aisinoDataGrid1                          = this.xmlComponentLoader1.GetControlByName <AisinoDataGrid>("aisinoDataGrid1");
     this.treeViewBM1                              = this.xmlComponentLoader1.GetControlByName <TreeViewBM>("treeViewBM1");
     this.splitContainer1                          = this.xmlComponentLoader1.GetControlByName <AisinoSPL>("splitContainer1");
     this.textBoxWaitKey.TextChanged              += new EventHandler(this.textBoxWaitKey_TextChanged);
     this.btnQuery.Click                          += new EventHandler(this.btnQuery_Click);
     this.aisinoDataGrid1.GoToPageEvent           += new EventHandler <GoToPageEventArgs>(this.aisinoDataGrid1_GoToPageEvent);
     this.aisinoDataGrid1.DataGridRowDbClickEvent += new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowDbClickEvent);
     this.aisinoDataGrid1.DataGridRowKeyDown      += new KeyEventHandler(this.aisinoDataGrid1_DataGridRowKeyDown);
     this.aisinoDataGrid1.ShowAllChkVisible        = false;
     this.treeViewBM1.onTreeNodeClick             += new TreeViewBM.OnTreeNodeClick(this.treeViewBM1_onTreeNodeClick);
     this.textBoxWaitKey.ToolTipText               = "输入关键字(车辆编码,名称,厂牌型号,产地,生产厂家名称)";
     this.toolSearchLbl                            = this.xmlComponentLoader1.GetControlByName <ToolStripLabel>("toolSearchLbl");
     this.toolSearchLbl.Alignment                  = ToolStripItemAlignment.Right;
     this.toolStrip1                               = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1");
     ControlStyleUtil.SetToolStripStyle(this.toolStrip1);
     this.textBoxWaitKey.Paint    += new PaintEventHandler(this.textBoxWaitKey_Paint);
     this.textBoxWaitKey.Alignment = ToolStripItemAlignment.Right;
     this.splitContainer1          = this.xmlComponentLoader1.GetControlByName <AisinoSPL>("splitContainer1");
     this.splitContainer1.Panel2.Controls.Add(this.toolStrip1);
 }
Пример #2
0
 private void Initialize()
 {
     this.InitializeComponent();
     this.textBoxWaitKey = this.xmlComponentLoader1.GetControlByName <TextBoxWait>("textBoxWaitKey");
     this.textBoxWaitKey.WaterMarkString = "输入关键字(编码,名称)";
     this.btnQuery                 = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnQuery");
     this.btnQuery.Visible         = false;
     this.aisinoDataGrid1          = this.xmlComponentLoader1.GetControlByName <AisinoDataGrid>("aisinoDataGrid1");
     this.treeViewBM1              = this.xmlComponentLoader1.GetControlByName <TreeViewBM>("treeViewBM1");
     this.splitContainer1          = this.xmlComponentLoader1.GetControlByName <AisinoSPL>("splitContainer1");
     this.textBoxWaitKey.FontWater = new Font("微软雅黑", 8f, FontStyle.Italic);
     this.textBoxWaitKey.TextChangedWaitGetText += new GetTextEventHandler(this.textBoxWaitKey_TextChangedWaitGetText);
     this.btnQuery.Click += new EventHandler(this.btnQuery_Click);
     this.aisinoDataGrid1.GoToPageEvent           += new EventHandler <GoToPageEventArgs>(this.aisinoDataGrid1_GoToPageEvent);
     this.aisinoDataGrid1.DataGridRowDbClickEvent += new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowDbClickEvent);
     this.aisinoDataGrid1.DataGridRowKeyDown      += new KeyEventHandler(this.aisinoDataGrid1_DataGridRowKeyDown);
     this.aisinoDataGrid1.ShowAllChkVisible        = false;
     this.treeViewBM1.onTreeNodeClick             += new TreeViewBM.OnTreeNodeClick(this.treeViewBM1_onTreeNodeClick);
 }
Пример #3
0
 private void InitializeComponent()
 {
     new ComponentResourceManager(typeof(BMBase <tEdit, tFenLei, tSelect>));
     this.aisinoDataGrid1     = new AisinoDataGrid();
     this.splitContainer1     = new AisinoSPL();
     this.treeViewBM1         = new TreeViewBM();
     this.toolStrip1          = new ToolStrip();
     this.toolExit            = new ToolStripButton();
     this.toolStripSeparator2 = new ToolStripSeparator();
     this.toolExport          = new ToolStripButton();
     this.toolImport          = new ToolStripButton();
     this.toolStripSeparator3 = new ToolStripSeparator();
     this.tool_GeShi          = new ToolStripButton();
     this.tool_TongJi         = new ToolStripButton();
     this.tool_ChaZhao        = new ToolStripButton();
     this.toolPrint           = new ToolStripButton();
     this.toolStripSeparator1 = new ToolStripSeparator();
     this.toolDel             = new ToolStripButton();
     this.toolModify          = new ToolStripButton();
     this.toolAdd             = new ToolStripButton();
     this.toolSearchLbl       = new ToolStripLabel();
     this.textBoxWaitKey      = new ToolStripTextBox();
     this.panel1 = new AisinoPNL();
     (this.splitContainer1 as ISupportInitialize).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.panel1.SuspendLayout();
     base.SuspendLayout();
     this.aisinoDataGrid1.AborCellPainting = false;
     this.aisinoDataGrid1.AutoSize         = true;
     this.aisinoDataGrid1.BackColor        = Color.White;
     this.aisinoDataGrid1.CurrentCell      = null;
     this.aisinoDataGrid1.DataSource       = null;
     this.aisinoDataGrid1.Dock             = DockStyle.Fill;
     this.aisinoDataGrid1.FirstDisplayedScrollingRowIndex = -1;
     this.aisinoDataGrid1.IsShowAll         = false;
     this.aisinoDataGrid1.Location          = new Point(0, 0);
     this.aisinoDataGrid1.Name              = "aisinoDataGrid1";
     this.aisinoDataGrid1.ReadOnly          = false;
     this.aisinoDataGrid1.RightToLeft       = RightToLeft.No;
     this.aisinoDataGrid1.ShowAllChkVisible = true;
     this.aisinoDataGrid1.Size              = new Size(0x311, 0xe5);
     this.aisinoDataGrid1.TabIndex          = 0;
     this.splitContainer1.Dock              = DockStyle.Fill;
     this.splitContainer1.Location          = new Point(0, 0);
     this.splitContainer1.Name              = "splitContainer1";
     this.splitContainer1.Panel1.Controls.Add(this.treeViewBM1);
     this.splitContainer1.Panel2.Controls.Add(this.toolStrip1);
     this.splitContainer1.Panel2.Controls.Add(this.aisinoDataGrid1);
     this.splitContainer1.Size             = new Size(0x3dc, 0xe5);
     this.splitContainer1.SplitterDistance = 0xc7;
     this.splitContainer1.TabIndex         = 0;
     this.treeViewBM1.ChildText            = "";
     this.treeViewBM1.Dock         = DockStyle.Fill;
     this.treeViewBM1.Location     = new Point(0, 0);
     this.treeViewBM1.Name         = "treeViewBM1";
     this.treeViewBM1.ReadOnly     = false;
     this.treeViewBM1.SelectedNode = null;
     this.treeViewBM1.Size         = new Size(0xc7, 0xe5);
     this.treeViewBM1.TabIndex     = 0;
     this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.toolExit, this.toolStripSeparator2, this.toolExport, this.toolImport, this.toolStripSeparator3, this.tool_GeShi, this.tool_TongJi, this.tool_ChaZhao, this.toolPrint, this.toolStripSeparator1, this.toolDel, this.toolModify, this.toolAdd, this.toolSearchLbl, this.textBoxWaitKey });
     this.toolStrip1.Location            = new Point(0, 0);
     this.toolStrip1.Name                = "toolStrip1";
     this.toolStrip1.Size                = new Size(0x311, 0x19);
     this.toolStrip1.TabIndex            = 1;
     this.toolStrip1.Text                = "toolStrip1";
     this.toolExit.Image                 = Resources.退出;
     this.toolExit.ImageTransparentColor = Color.Magenta;
     this.toolExit.Name                      = "toolExit";
     this.toolExit.Size                      = new Size(0x34, 0x16);
     this.toolExit.Text                      = "退出";
     this.toolStripSeparator2.Name           = "toolStripSeparator2";
     this.toolStripSeparator2.Size           = new Size(6, 0x19);
     this.toolExport.Image                   = Resources.导出;
     this.toolExport.ImageTransparentColor   = Color.Magenta;
     this.toolExport.Name                    = "toolExport";
     this.toolExport.Size                    = new Size(0x34, 0x16);
     this.toolExport.Text                    = "导出";
     this.toolImport.Image                   = Resources.导入;
     this.toolImport.ImageTransparentColor   = Color.Magenta;
     this.toolImport.Name                    = "toolImport";
     this.toolImport.Size                    = new Size(0x34, 0x16);
     this.toolImport.Text                    = "导入";
     this.toolStripSeparator3.Name           = "toolStripSeparator3";
     this.toolStripSeparator3.Size           = new Size(6, 0x19);
     this.tool_GeShi.Image                   = Resources.格式;
     this.tool_GeShi.ImageTransparentColor   = Color.Magenta;
     this.tool_GeShi.Name                    = "tool_GeShi";
     this.tool_GeShi.Size                    = new Size(0x34, 0x16);
     this.tool_GeShi.Text                    = "格式";
     this.tool_GeShi.Click                  += new EventHandler(this.tool_GeShi_Click);
     this.tool_TongJi.Image                  = Resources.统计;
     this.tool_TongJi.ImageTransparentColor  = Color.Magenta;
     this.tool_TongJi.Name                   = "tool_TongJi";
     this.tool_TongJi.Size                   = new Size(0x34, 0x16);
     this.tool_TongJi.Text                   = "统计";
     this.tool_ChaZhao.Image                 = Resources.搜索;
     this.tool_ChaZhao.ImageTransparentColor = Color.Magenta;
     this.tool_ChaZhao.Name                  = "tool_ChaZhao";
     this.tool_ChaZhao.Size                  = new Size(0x34, 0x16);
     this.tool_ChaZhao.Text                  = "查找";
     this.tool_ChaZhao.Click                += new EventHandler(this.tool_ChaZhao_Click);
     this.toolPrint.Image                    = Resources.打印;
     this.toolPrint.ImageTransparentColor    = Color.Magenta;
     this.toolPrint.Name                     = "toolPrint";
     this.toolPrint.Size                     = new Size(0x34, 0x16);
     this.toolPrint.Text                     = "打印";
     this.toolPrint.Click                   += new EventHandler(this.toolPrint_Click);
     this.toolStripSeparator1.Name           = "toolStripSeparator1";
     this.toolStripSeparator1.Size           = new Size(6, 0x19);
     this.toolDel.Image                      = Resources.除;
     this.toolDel.ImageTransparentColor      = Color.Magenta;
     this.toolDel.Name     = "toolDel";
     this.toolDel.Size     = new Size(0x34, 0x16);
     this.toolDel.Text     = "删除";
     this.toolModify.Image = Resources.修改;
     this.toolModify.ImageTransparentColor = Color.Magenta;
     this.toolModify.Name = "toolModify";
     this.toolModify.Size = new Size(0x34, 0x16);
     this.toolModify.Text = "修改";
     this.toolAdd.Image   = Resources.增加;
     this.toolAdd.ImageTransparentColor = Color.Magenta;
     this.toolAdd.Name               = "toolAdd";
     this.toolAdd.Size               = new Size(0x34, 0x16);
     this.toolAdd.Text               = "增加";
     this.toolSearchLbl.Alignment    = ToolStripItemAlignment.Right;
     this.toolSearchLbl.Image        = Resources.搜索;
     this.toolSearchLbl.Name         = "toolSearchLbl";
     this.toolSearchLbl.Size         = new Size(0x30, 0x16);
     this.toolSearchLbl.Text         = "检索";
     this.textBoxWaitKey.Alignment   = ToolStripItemAlignment.Right;
     this.textBoxWaitKey.Name        = "textBoxWaitKey";
     this.textBoxWaitKey.Size        = new Size(150, 0x19);
     this.textBoxWaitKey.ToolTipText = "输入关键字(******)";
     this.panel1.Controls.Add(this.splitContainer1);
     this.panel1.Dock         = DockStyle.Fill;
     this.panel1.Location     = new Point(0, 0);
     this.panel1.Name         = "panel1";
     this.panel1.Size         = new Size(0x3dc, 0xe5);
     this.panel1.TabIndex     = 1;
     base.AutoScaleDimensions = new SizeF(6f, 12f);
     base.AutoScaleMode       = AutoScaleMode.Font;
     base.ClientSize          = new Size(0x3dc, 0xe5);
     base.Controls.Add(this.panel1);
     base.Name    = "BMBase";
     base.TabText = "**编码设置";
     this.Text    = "**编码设置";
     base.Load   += new EventHandler(this.BMBase_Load);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.Panel2.PerformLayout();
     (this.splitContainer1 as ISupportInitialize).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.panel1.ResumeLayout(false);
     base.ResumeLayout(false);
 }