Пример #1
0
 /// <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");
 }
Пример #2
0
        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);
            }
        }