private void RunMacro(string macroFilePath) { string[] inputArray = GetInputTextArray(); string input = string.Empty; if (inputArray.Length == 0) { input = string.Empty; } else if (inputArray.Length >= 1) { input = inputArray[0]; } string result = MacroProcessor.RunMacro(input, macroFilePath); SetOutputText(result); }