public string GetAnalyzerModuleName(IEmgSignalAnalyzer analyzer) { foreach (string moduleName in _emgAnalyzers.Keys) { if (_emgAnalyzers[moduleName].GetType().Equals(analyzer.GetType())) { return(moduleName.ToLower()); } } throw new ApplicationException("Module is not in the loaded modules. Something went seriously wrong, please, contact the support department!"); }
public static string GetAnalyzerModuleName(IEmgSignalAnalyzer analyzer) { return(Instance.GetAnalyzerModuleName(analyzer)); }
public string GetAnalyzerModuleName(IEmgSignalAnalyzer analyzer) { _emgAnalysisModules.UpdateModules(ANALYZERS_PATH); return(_emgAnalysisModules.GetModuleName(analyzer)); }