private void ProcessLine(string line, IProgressReporter rep) { if(line.StartsWith("E:")) { rep.DeviceError(line.Substring(2)); throw new FlashException(line.Substring(2)); } if(line.StartsWith("FW:")) { Version = Version.Parse(line.Substring(3)); return; } if(line.StartsWith("I:")) line = line.Substring(2); rep.DeviceFeedback(line); }