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(); }
private void DeleteAllUserPoints() { userPoints.RemoveAll(); Invalidate(true); Update(); }