private void AddSubItem(string caption, InvokeNumber num) { BarButtonItem barItem = new BarButtonItem(); barItem.Caption =caption; barItem.ItemClick += delegate { this.m_SkylineHook.TerraExplorer.Invoke((int)num); }; m_Control.AddItem(barItem); }
private void AddSubItem(string caption, InvokeNumber num) { BarButtonItem barItem = new BarButtonItem(); barItem.Caption = caption; barItem.ItemClick += delegate { this.m_SkylineHook.TerraExplorer.Invoke((int)num); }; m_Control.AddItem(barItem); }