private void buttonTaskList_Click(object sender, EventArgs e) { StringBuilder filePath = new StringBuilder(); Boolean result = RemoteCall.GetTaskList(filePath); if (result) { AppendLog(String.Format("Success: taskList file: {0}", filePath.ToString())); Process.Start(filePath.ToString()); } else { this.listBoxLog.Items.Add(String.Format("Failed to get taskList")); } }