Beispiel #1
0
        private void cboProvinces_SelectedIndexChanged(object sender, EventArgs e)
        {
            //gets value from combo box
            string selectedItem;

            selectedItem     = Convert.ToString(this.cboProvinces.SelectedItem);
            selectedProvince = (CANPROVINCE)(Enum.Parse(typeof(CANPROVINCE), selectedItem));
        }
Beispiel #2
0
 public void AddressInfo(string funStreetAddress, string funCity, CANPROVINCE funProvince, string funPostalCode, string funAptNumber)
 {
     if (funAptNumber == "")
     {
         AddressInfo(funStreetAddress, funCity, funProvince, funPostalCode);
     }
     else
     {
         MessageBox.Show(funStreetAddress + ", " + funAptNumber + ", " + funCity + ", " + funProvince + ", " + funPostalCode, "Your Address");
     }
 }
 public void AddressInfo(string funStreetAddress, string funCity, CANPROVINCE funProvince, string funPostalCode,string funAptNumber)
 {
     if(funAptNumber == "")
     {
        AddressInfo(funStreetAddress, funCity, funProvince, funPostalCode);
     }
     else
     {
     MessageBox.Show(funStreetAddress + ", " + funAptNumber + ", " + funCity + ", " + funProvince + ", " + funPostalCode,"Your Address");
     }
 }
Beispiel #4
0
 public void AddressInfo(string funStreetAddress, string funCity, CANPROVINCE funProvince, string funPostalCode)
 {
     MessageBox.Show(funStreetAddress + ", " + funCity + ", " + funProvince + ", " + funPostalCode, "Your Address");
 }
 public void AddressInfo(string funStreetAddress, string funCity, CANPROVINCE funProvince, string funPostalCode)
 {
     MessageBox.Show(funStreetAddress + ", "  + funCity + ", " + funProvince + ", " + funPostalCode, "Your Address");
 }
 private void cboProvinces_SelectedIndexChanged(object sender, EventArgs e)
 {
     //gets value from combo box
     string selectedItem;
     selectedItem = Convert.ToString(this.cboProvinces.SelectedItem);
     selectedProvince = (CANPROVINCE)(Enum.Parse(typeof(CANPROVINCE), selectedItem));
 }