public void __program_extf(Firmware fw) { byte[] code = fw.extf_imagebyte; List <byte[]> groups = self.__split_len(code, PROG_MULTI_MAX); int a = 1; foreach (Byte[] bytes in groups) { self.__program_multi_extf(bytes); System.Diagnostics.Debug.WriteLine("Program extf {0}/{1}", a, groups.Count); a++; if (ProgressEvent != null) { ProgressEvent((a / (float)groups.Count) * 100.0); } } }