/// <summary> /// Reset gears to neutral... :P /// </summary> private void CapitulateCurOp() { if (CurEditOp == null) return; CurEditOp.EndOperation(); CurEditOp = null; if (Debug_outputEditOpLifecycle) iiii("Edit mode: none"); }
private void ActivateCorrectOp( Func<MouseOpAbstract, bool> trigger //, Action<EditOperationAbstract> init ) { CurEditOp = EditOpsAll.FirstOrDefault(op => trigger(op)); if (CurEditOp != null) { CurEditOp.Init(); if (Debug_outputEditOpLifecycle) iiii("Edit op: " + CurEditOp.Description); } }