public SerialPort[] FromFiles()
 {
     fileSerivce = new FileService();
     int[] parityIndexs; int[] stopBitsIndexs; int[] baudRateIndexs;
     if (fileSerivce.ReadSerialPortConfig(out parityIndexs, out stopBitsIndexs, out baudRateIndexs) == true)
     {
         return(new SerialPort[]
         {
             Default,
             Default,
         });
     }
     return(new SerialPort[]
     {
         Default,
         Default,
     });
 }
 public void FromFiles(out int[] parityIndexs, out int[] stopBitsIndexs, out int[] baudRateIndexs)
 {
     fileSerivce = new FileService();
     fileSerivce.ReadSerialPortConfig(out parityIndexs, out stopBitsIndexs, out baudRateIndexs);
 }