protected virtual void OnNewToolBoxClickEvent(ToolBoxEventArgs e) { EventHandler <ToolBoxEventArgs> m_NewToolBoxClickEvent = NewToolBoxClickEvent; if (m_NewToolBoxClickEvent != null) { AsyncCallback EventDone = new AsyncCallback(CallBack); m_NewToolBoxClickEvent.BeginInvoke(this, e, null, e); } }
private void FrmToolBox_NewToolBoxClickEvent(object sender, ToolBoxEventArgs e) { Console.WriteLine(e.Name); }