Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            CandidatesAmericaRepublicanSoapClient client = new CandidatesAmericaRepublicanSoapClient();
            OscarServiceSoapClient clientOscars          = new OscarServiceSoapClient();

            foreach (var allYear in clientOscars.GetAllYears())
            {
                comboBoxTwo.Items.Add(allYear);
            }
            foreach (var year in client.GetAllYears())
            {
                comboBoxFromYear.Items.Add(year);
                comboBoxToYear.Items.Add(year);
            }
        }
Ejemplo n.º 2
0
 public Form1()
 {
     InitializeComponent();
     CandidatesAmericaRepublicanSoapClient client = new CandidatesAmericaRepublicanSoapClient();
     OscarServiceSoapClient clientOscars = new OscarServiceSoapClient();
     foreach (var allYear in clientOscars.GetAllYears())
     {
         comboBoxTwo.Items.Add(allYear);
     }
     foreach (var year in client.GetAllYears())
     {
         comboBoxFromYear.Items.Add(year);
         comboBoxToYear.Items.Add(year);
     }
     
 }