VIZCore3DControlOnToolbarItemClicked Event |
Namespace: VIZCore3D.NET
public event ToolbarItemClickedEventHandler OnToolbarItemClicked
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { // Add Event vizcore3d.OnToolbarItemClicked += VIZCore3D_OnToolbarItemClicked; } private void VIZCore3D_OnToolbarItemClicked(object sender, Event.ToolbarItemClickedEventArgs e) { if(e.Item == VIZCore3D.NET.Data.ToolbarItems.MAIN_SAVE_VIZ || e.Item == VIZCore3D.NET.Data.ToolbarItems.MAIN_SAVEAS_VIZ) { // Disable Menu :: Save e.Cancel = true; } else { e.Cancel = false; } }