private void ManagerOnItemStateChanged(object sender, ManipulatorsItemEventArgs e) { if (_started) { _cooldown.Accumulate(); } }
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); } }