Ejemplo n.º 1
0
 private void buttonGetCandidates_Click(object sender, EventArgs e)
 {
     CandidatesAmericaRepublicanSoapClient candidateClient = new CandidatesAmericaRepublicanSoapClient();
     listView2.Items.Clear();
     var array = candidateClient.GetAllCandidates((string) comboBoxFromYear.SelectedItem,
         (string) comboBoxToYear.SelectedItem);
     foreach (var item in array)
     {
         listView2.Items.Add(item);
     }
 }
Ejemplo n.º 2
0
        private void buttonGetCandidates_Click(object sender, EventArgs e)
        {
            CandidatesAmericaRepublicanSoapClient candidateClient = new CandidatesAmericaRepublicanSoapClient();

            listView2.Items.Clear();
            var array = candidateClient.GetAllCandidates((string)comboBoxFromYear.SelectedItem,
                                                         (string)comboBoxToYear.SelectedItem);

            foreach (var item in array)
            {
                listView2.Items.Add(item);
            }
        }
Ejemplo n.º 3
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.º 4
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);
     }
     
 }