Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<string> list = this.file.ReadToList ("Config.ini");
- this.ButtonName = this.file.ReadToList ("ButtonName.txt");
- if (list == null) {
- return;
- }
- this.strCurrentFilePath = list [0];
- if (File.Exists (this.strCurrentFilePath)) {
- this.Status1.Text = this.GetLocalText ("打开文件:", "Open file:") + Path.GetFileName (this.strCurrentFilePath);
- this.ReadTextFile (this.strCurrentFilePath);
- }
- for (int j = this.SteeringMotorNum; j < 32; j++) {
- this.SteeringMotor [j].Visible = false;
- }
- this.spSerialPort.PortName = list [1];
- this.spSerialPort.BaudRate = int.Parse (list [2]);
- this.byteID = byte.Parse (list [3]);
- this.ActionIndex = int.Parse (list [4]);
- this.PortStop = false;
- this.SetBoardType (byte.Parse (list [6]));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement