void MathInputReceived(Object sender, String result) { var service = _vm.Container.Get <IMathInputService>(); if (service != null) { var settings = _vm.Container.Get <ISettings>(); var query = service.ConvertToYamp(result); if (settings != null && settings.AutoEvaluate) { MyConsole.InsertAndRun(query); } else { MyConsole.Input = query; } } }