Esempio n. 1
0
 void newBiller_MenuBarClick(K3ClassEvents.BOSTool BOSTool, ref bool Cancel)
 {
     if (this.On_ToolsButtonClick != null)
     {
         this.On_ToolsButtonClick(BOSTool.Caption);
     }
 }
Esempio n. 2
0
 void NewBillOjbect_MenuBarClick(K3ClassEvents.BOSTool BOSTool, ref bool Cancel)
 {
     if (BOSTool.ToolName == "AboutPlug")
     {
         MessageBox.Show("系统组件版本" + this.Version);
     }
 }
Esempio n. 3
0
        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);
        }