Beispiel #1
0
        private void MainFrm_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == 8 || e.KeyChar == 127)
            {
                selectedPoints.RemoveAll();
            }
            else if (e.KeyChar == 27)
            {
                selectedPoints.RemoveAll();
            }

            Invalidate(true);
            Update();
        }
Beispiel #2
0
        private void DeleteAllUserPoints()
        {
            userPoints.RemoveAll();

            Invalidate(true);
            Update();
        }