public void ExportRegistersCommands(ref BCamRegistersModel registers) { string path = Environment.CurrentDirectory + "\\exportSDK.csv"; List <string> list = File.ReadLines(path).ToList <string>(); using (TextWriter text = (TextWriter)File.CreateText(path)) { TextWriter textWriter1 = text; List <string> stringList1 = list; List <string> stringList2 = stringList1; string str1 = stringList1[0]; int index1 = ++this.column; string str2 = index1.ToString(); string str3; string str4 = str3 = str1 + ";" + str2; stringList2[0] = str3; string str5 = str4; textWriter1.WriteLine(str5); for (int index2 = 0; index2 < registers.GetCount(); ++index2) { TextWriter textWriter2 = text; List <string> stringList3 = list; index1 = index2 + 1; string str6 = stringList3[index1] = stringList3[index1] + ";" + registers.GetRegisterValue(index2).ToString(); textWriter2.WriteLine(str6); } } }
internal BCamComLayer(CyFX3Device cyFX3Device, bool sensor4M) { this.fx3Device = cyFX3Device; this.debugOutput = new BDebugOutput(); this.camRegisters = new BCamRegistersModel(sensor4M); this.LoadBemageFirmwareImg(); Thread.Sleep(10); }