public IGH615MTrackInfo[] GetTracksInfo()
 {
     if (_tracksInfo == null)
     {
         if (!IsConnected)
         {
             return(null);
         }
         using (var session = new SerialPortSession(_commport))
         {
             var cmd = new GetTracksListCommand();
             cmd.Execute(session.Port);
             _tracksInfo = cmd.GetTracksInfo();
             Array.Reverse(_tracksInfo);
         }
     }
     return(_tracksInfo);
 }
 public IGH615MTrackInfo[] GetTracksInfo()
 {
     if (_tracksInfo == null)
     {
         if (!IsConnected)
         {
             return null;
         }
         using (var session = new SerialPortSession(_commport))
         {
             var cmd = new GetTracksListCommand();
             cmd.Execute(session.Port);
             _tracksInfo = cmd.GetTracksInfo();
             Array.Reverse(_tracksInfo);
         }
     }
     return _tracksInfo;
 }