/// <summary> /// parses information to gather both the CustomerID and Name exclusively. /// </summary> public void parseCustomerInformation() { string[] split = CurrentCustomer.Split(' '); if (CurrentCustomer.IndexOf(' ') == 0) { CurrentCustomerID = split[1].ToString(); CurrentCustomer = split[2].ToString() + " " + split[3].ToString(); } else { CurrentCustomer = split[0].ToString() + " " + split[1].ToString(); } }