Пример #1
0
 //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;
 }
Пример #2
0
 /// <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;
             }
         }
     }
 }