예제 #1
0
        private string[][] getFlights()
        {
            WebServerReference.FlightsWebServiceSoapClient a = new WebServerReference.FlightsWebServiceSoapClient();
            List <string> temp = a.getAllFlights();

            string[][] arr = new string[temp.Count / 5][];
            for (int i = 0; i < temp.Count; i++)
            {
                for (int j = 0; j < 5; j++)
                {
                    arr[i][j] = temp.ElementAt(i);
                }
            }
            return(arr);
        }
예제 #2
0
        private void loadFlights()
        {
            WebServerReference.FlightsWebServiceSoapClient a = new WebServerReference.FlightsWebServiceSoapClient();
            List <string> temp = a.getAllFlights();

            string str = "";

            for (int i = 0; i < temp.Count; i++)
            {
                if (i % 5 == 0 && i != 0)
                {
                    flights_list_box.Items.Add(str);
                    str = "";
                }
                str += "\t" + temp[i];
            }
        }