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; } }
protected override void Collection_Edited(object sender, EditedEventArgs e) { listBox1.Items.Clear(); listBox1.Items.AddRange(collection.ToArray()); }
protected virtual void OnEdited(EditedEventArgs eventArgs) { Edited?.Invoke(this, eventArgs); }