void newBiller_MenuBarClick(K3ClassEvents.BOSTool BOSTool, ref bool Cancel) { if (this.On_ToolsButtonClick != null) { this.On_ToolsButtonClick(BOSTool.Caption); } }
void NewBillOjbect_MenuBarClick(K3ClassEvents.BOSTool BOSTool, ref bool Cancel) { if (BOSTool.ToolName == "AboutPlug") { MessageBox.Show("系统组件版本" + this.Version); } }
public void AddToolsButton(string name, string parent) { K3ClassEvents.BOSTool oTool = null; K3ClassEvents.BOSBand oBand = null; oTool = this.OMenuBar.BOSTools.Add(name); oTool.Caption = name; oTool.ShortcutKey = 0; oTool.Visible = true; oTool.Enabled = true; oTool.BeginGroup = false; for (int index = 1; index <= this.OMenuBar.BOSBands.Count; index++) { if (parent == this.OMenuBar.BOSBands[index].Caption) { oBand = this.OMenuBar.BOSBands[index]; } } if (oBand == null) { oBand = this.OMenuBar.BOSBands[this.OMenuBar.BOSBands.Count]; } oBand.BOSTools.InsertAfter(-1, ref oTool); }