Ejemplo n.º 1
0
 private void ManagerOnItemStateChanged(object sender, ManipulatorsItemEventArgs e)
 {
     if (_started)
     {
         _cooldown.Accumulate();
     }
 }
Ejemplo n.º 2
0
        private static void ManipulatorsManagerOnItemStateChanged(object sender, ManipulatorsItemEventArgs e)
        {
            var s = IoC.Resolve <WsService>();

            if (e.Inserted)
            {
                s.RegisterHandlerForAction(e.Manipulation.Name, ManipulationHandler);
            }
            else
            {
                s.UnregisterHandlerForAction(e.Manipulation.Name, ManipulationHandler);
            }
        }