protected override void OnUpdate(Command command) { base.OnUpdate(command); command.IsEnabled = Window.ActiveWindow.GetAllSelectedITrimmedCurves().Count == 2; }