Exemplo n.º 1
0
 public void AddRadioButtons(string groupName, List <string[]> strArrayList)
 {
     for (var i = 0; i < strArrayList.Count; i++)
     {
         var radioButton2 = new MogwaiRadioButton(30, 1)
         {
             Name      = strArrayList[i][0],
             Position  = new Point(4, 4 + i),
             GroupName = groupName,
             Text      = strArrayList[i][1]
         };
         radioButton2.MouseButtonClicked += ClickedRadioButton;
         Add(radioButton2);
     }
 }
Exemplo n.º 2
0
 private void ClickedRadioButton(object sender, MouseEventArgs e)
 {
     _selectedRadioButton = sender as MogwaiRadioButton;
 }