using DevExpress.XtraEditors; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Gs.DevApp.UserControl { public partial class ToolBarMenu : DevExpress.XtraEditors.XtraUserControl { public event EventHandler btnAddClick; public ToolBarMenu() { InitializeComponent(); this.btnAdd.ItemClick += BtnAdd_ItemClick; } private void BtnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (btnAddClick != null) { btnAddClick(this, e); } } } }