private void PrintTypeAndChangeTo(string name, string templateStartType) { var paramz = new Dictionary <String, string>() { [ServiceAction.PARAM_NAME_SERVICE_NAME] = name, [ServiceAction.PARAM_NAME_START_MODE] = templateStartType }; var serviceAction = new ServiceAction(paramz); Log("service " + name + "; " + Enum.GetName(typeof(Action_.StatusResult), serviceAction.CheckStatus()) + " | type: " + templateStartType); Log("service " + name + "; execution result: " + serviceAction.Execute()); }