Пример #1
0
        private void ListCell_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode.ToString().Equals("Delete"))
            {
                int y = lco.owner.AutoScrollPosition.Y;

                if (this is L_ListCell)
                {
                    cm.deleteCell(this as L_ListCell);
                }
                else if (this is R_ListCell)
                {
                    cm.deleteCell(this as R_ListCell);
                }

                lco.owner.AutoScrollPosition = new Point(0, -y);
            }
        }