Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.81 KB | None | 0 0
  1.     List<string> list = this.file.ReadToList ("Config.ini");
  2.     this.ButtonName = this.file.ReadToList ("ButtonName.txt");
  3.     if (list == null) {
  4.         return;
  5.     }
  6.     this.strCurrentFilePath = list [0];
  7.     if (File.Exists (this.strCurrentFilePath)) {
  8.         this.Status1.Text = this.GetLocalText ("打开文件:", "Open file:") + Path.GetFileName (this.strCurrentFilePath);
  9.         this.ReadTextFile (this.strCurrentFilePath);
  10.     }
  11.     for (int j = this.SteeringMotorNum; j < 32; j++) {
  12.         this.SteeringMotor [j].Visible = false;
  13.     }
  14.     this.spSerialPort.PortName = list [1];
  15.     this.spSerialPort.BaudRate = int.Parse (list [2]);
  16.     this.byteID = byte.Parse (list [3]);
  17.     this.ActionIndex = int.Parse (list [4]);
  18.     this.PortStop = false;
  19.     this.SetBoardType (byte.Parse (list [6]));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement