protected override void Collection_Edited(object sender, EditedEventArgs e)
 {
     string[] dataStringsArray = collection.ToArray();
     panelSelection.Controls.Clear();
     for (int i = 0; i < dataStringsArray.Length; i++)
     {
         RadioButton radioButton = new RadioButton();
         panelSelection.Controls.Add(radioButton);
         radioButton.Left   = m_left;
         radioButton.Top    = m_top + (m_space + radioButton.Height) * i;
         radioButton.Text   = dataStringsArray[i];
         radioButton.Click += RadioButton_Click;
     }
 }
示例#2
0
 protected override void Collection_Edited(object sender, EditedEventArgs e)
 {
     listBox1.Items.Clear();
     listBox1.Items.AddRange(collection.ToArray());
 }
示例#3
0
 protected virtual void OnEdited(EditedEventArgs eventArgs)
 {
     Edited?.Invoke(this, eventArgs);
 }