public void BindTopTool() { this.tbGrid.SearchClicked += new EventHandler(tbGrid_SearchClicked); this.tbGrid.AddSearchAllModule(); this.tbGrid.RefreshClicked += new EventHandler(tbGrid_RefreshClicked); this.tbGrid.LookClicked += new EventHandler(tbGrid_LookClicked); ToolBarHelper tsHelper=new ToolBarHelper(); ToolStripButton repairBtn = tsHelper.New("维修", QX.GenFramework.Properties.Resources.batch, new EventHandler(repairBtn_Click)); //repairBtn.Click += new EventHandler(repairBtn_Click); this.tbGrid.AddCustomControl(repairBtn); }
private void BindTopTool() { #region 工具条 this.top_tool_bar.AddClicked += new EventHandler(top_tool_bar_AddClicked); this.top_tool_bar.EditClicked += new EventHandler(top_tool_bar_EditClicked); this.top_tool_bar.RefreshClicked += new EventHandler(top_tool_bar_RefreshClicked); this.top_tool_bar.LookClicked += new EventHandler(top_tool_bar_LookClicked); top_tool_bar.DelClicked += new EventHandler(top_tool_bar_DelClicked); //top_tool_bar.LookClicked += new EventHandler(top_tool_bar_QueryClicked); this.top_tool_bar.SearchClicked += new EventHandler(top_tool_bar_SearchClicked); this.top_tool_bar.AddSearchAllModule(); #endregion ToolBarHelper tsHelper = new ToolBarHelper(); ToolStripButton batchBtn = tsHelper.New("批量成品编号生成", QX.GenFramework.Properties.Resources.batch, new EventHandler(batchBtn_Click)); //batchBtn.Click += new EventHandler(batchBtn_Click); this.top_tool_bar.AddCustomControl(batchBtn); }
private void BindTopTool() { #region 库存 this.top_tool_bar.SearchClicked += new EventHandler(top_tool_bar_SearchClicked); this.top_tool_bar.AddSearchAllModule(); this.top_tool_bar.LookClicked += new EventHandler(top_tool_bar_LookClicked); //ToolStripControlHost comboStatHost = new ToolStripControlHost(comboStat); //comboStatHost.Margin = new Padding(5, 0, 0, 0); //this.top_tool_bar.AddCustomControl(6, comboStatHost); ToolBarHelper tsHelper = new ToolBarHelper(); ToolStripButton btnDownload = tsHelper.New("下载", QX.GenFramework.Properties.Resources.import, new EventHandler(btnDownload_Click)); this.top_tool_bar.AddCustomControl(9, btnDownload); #endregion }
private void BindTopTool() { #region 工具条 this.top_tool_bar.SearchClicked += new EventHandler(top_tool_bar_SearchClicked); this.top_tool_bar.AddSearchAllModule(); ToolBarHelper tsHelper = new ToolBarHelper(); ToolStripButton importBtn = tsHelper.New("手动录入", QX.GenFramework.Properties.Resources.import, new EventHandler(importBtn_Click)); //importBtn.Click += new EventHandler(importBtn_Click); this.top_tool_bar.AddCustomControl(importBtn); //conBtn.Click += new EventHandler(conBtn_Click); ToolStripButton conBtn = tsHelper.New("保存", QX.GenFramework.Properties.Resources.finished, new EventHandler(conBtn_Click)); this.top_tool_bar.AddCustomControl(conBtn); #endregion }
public void BindTopTool() { this.top_tool_bar.SaveClicked += new EventHandler(top_tool_bar_SaveClicked); ToolBarHelper tsHelper = new ToolBarHelper(); scanBtn = tsHelper.New("扫描", QX.GenFramework.Properties.Resources.gantan, new EventHandler(scanBtn_Click)); this.top_tool_barProd.AddCustomControl(scanBtn); }
private void BindTopTool() { #region 库存 Bll_Bse_Dict dcInstance = new Bll_Bse_Dict(); List<Bse_Dict> list = dcInstance.GetDictByKey("SearchType"); comboStat.DataSource = list; comboStat.DisplayMember = "Dict_Name"; comboStat.ValueMember = "Dict_Code"; comboStat.Tag = list; this.top_tool_bar.SearchClicked += new EventHandler(top_tool_bar_SearchClicked); this.top_tool_bar.AddSearchAllModule(); ToolStripControlHost comboStatHost = new ToolStripControlHost(comboStat); comboStatHost.Margin = new Padding(5, 0, 0, 0); this.top_tool_bar.AddCustomControl(6, comboStatHost); ToolBarHelper tsHelper = new ToolBarHelper(); ToolStripButton btnDownload = tsHelper.New("下载", QX.GenFramework.Properties.Resources.import, new EventHandler(btnDownload_Click)); this.top_tool_bar.AddCustomControl(9, btnDownload); #endregion }