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)); }
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"); } }
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)); }