public List <Flight> ParseDataToFlightListByLine(string[] data)
        {
            List <Flight> flights = new List <Flight>();

            for (int i = 0; i < data.Length; i++)
            {
                Regex    pattern = new Regex("(\",\"|,,)");
                string[] line    = pattern.Split(data[i]);
                if (line.Length > 1)
                {
                    if (line[2].Contains("RW Interfacility") || line[2].Contains("RW Scene") ||
                        line[2].Contains("FW Interfacility") || line[2].Contains("FW Scene") ||
                        line[2].Contains("Ground") || line[2].Contains("RF Interfacility (FW)") ||
                        line[2].Contains("SAR") || line[2].Contains("SAR To Hosp") || line[2].Contains("RF Scene (FW)"))
                    {
                        int  baseInt      = CleanData(line);
                        bool containsBase = DoesStringContainBase(line[baseInt]);
                        if (containsBase == false)
                        {
                            IncompleteFlight incompleteFlight = new IncompleteFlight(line);
                            ViewModel.IncompleteFlights.Add(incompleteFlight);
                        }
                        else
                        {
                            Flight flight = Flight.ReturnFlight(line, 2, 4, baseInt);
                            flights.Add(flight);
                        }
                    }
                }
            }
            return(flights);
        }
        public List <Flight> ParseDataToFlightList(string[] data)
        {
            List <Flight> flights = new List <Flight>();

            for (int i = 0; i < data.Length; i++)
            {
                if (data[i].Contains("Call Type Count"))
                {
                    break;
                }
                else if (data[i].Contains("RW Interfacility") || data[i].Contains("RW Scene") ||
                         data[i].Contains("FW Interfacility") || data[i].Contains("FW Scene") ||
                         data[i].Contains("Ground") || data[i].Contains("RF Interfacility (FW)") ||
                         data[i].Contains("SAR") || data[i].Contains("SAR To Hosp") || data[i].Contains("RF Scene (FW)"))
                {
                    if (!data[i - 2].Contains("SAR"))
                    {
                        int  point        = i;
                        int  baseInt      = CleanData(data, i);
                        int  checkPoint   = baseInt + i;
                        bool containsBase = DoesStringContainBase(data[checkPoint]);
                        if (containsBase == false)
                        {
                            IncompleteFlight incompleteFlight = new IncompleteFlight(data, i);
                            ViewModel.IncompleteFlights.Add(incompleteFlight);
                        }
                        else
                        {
                            Flight flight = Flight.ReturnFlight(data.Skip(point).ToArray(), baseInt);
                            flights.Add(flight);
                        }
                    }
                }
            }
            return(flights);
        }