SHARE
TWEET

Untitled

a guest Oct 21st, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace COMP2614Assign05
  8. {
  9.  
  10.     // Class to hold a collection of SelectionList
  11.     class ProvinceSelectionList : List<string>
  12.     {
  13.         // method that return a list of Provinces via CustomerRepository from the sql database
  14.         public string Provinces(int index)
  15.         {
  16.             CustomerRepository province = new CustomerRepository();
  17.  
  18.             string provinces = province.GetProvince().ElementAt(index-1); // 0,1,2,3,4 > 1,2,3,4,5
  19.  
  20.             return provinces;
  21.         }
  22.     }
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top