internal override void OnEnterKeyCommand(object obj) { if (Distance == 0 || Point1 == null) { return; } base.OnEnterKeyCommand(obj); }