//constructor that takes two strings and a interestType public Interest(string name, string info, interestType type) { //set the values passed to the new Interest(); method //to the properties in this object Name = name; Info = info; Type = type; }
/// <summary> /// this method sets the current interest global variable /// </summary> private void setInterest() { if (isInterest()) { foreach (var rdo in grpInterests.Controls.OfType<RadioButton>()) { if (rdo.Checked) { currentInterest = (interestType) rdo.Tag; } } } }