Ejemplo n.º 1
0
        public void Delete_Command(Object sender, EventArgs e)
        {
            GoView v = GoContextMenu.FindView(sender as MenuItem);

            if (v != null)
            {
                v.EditDelete();
            }
        }
Ejemplo n.º 2
0
        private void btnDelete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            GoView view = GetCurrentGoView();

            if (view != null && view.Selection.Count >= 1 && view.CanEditDelete())
            {
                view.EditDelete();
            }
        }