public void Cut_Command(Object sender, EventArgs e) { GoView v = GoContextMenu.FindView(sender as ToolStripMenuItem); if (v != null) { v.EditCut(); } }
private void btnCut_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { GoView view = GetCurrentGoView(); if (view != null && view.CanEditCut()) { view.EditCut(); } }