private void addFreqButton_Click(object sender, EventArgs e)
 {
     using (AddFrequencyForm form = new AddFrequencyForm())
     {
         if (form.ShowDialog() == DialogResult.OK)
         {
             ListViewItem item = new ListViewItem();
             item.Text = form.Frequency.ToString();
             item.SubItems.Add(form.MarkColor.Name);
             item.SubItems.Add(form.MarkLabel);
             marksListView.Items.Add(item);
         }
     }
 }
Example #2
0
 private void addFreqButton_Click(object sender, EventArgs e)
 {
     using (AddFrequencyForm form = new AddFrequencyForm())
     {
         if (form.ShowDialog() == DialogResult.OK)
         {
             ListViewItem item = new ListViewItem();
             item.Text = form.Frequency.ToString();
             item.SubItems.Add(form.MarkColor.Name);
             item.SubItems.Add(form.MarkLabel);
             marksListView.Items.Add(item);
         }
     }
 }