Exemplo n.º 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");
 }
Exemplo n.º 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);
            }
        }