Sha256: 547a03c2682e81df81c2192a39734014588e744f9edfb2f59d4850f59e640a61
Contents?: true
Size: 1.18 KB
Versions: 30
Compression:
Stored size: 1.18 KB
Contents
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsForms { public partial class DataEntryForm : Form { public DataEntryForm() { InitializeComponent(); } private void closeDataEntryFormButton_Click(object sender, EventArgs e) { this.Close(); } private void addItemButton_Click(object sender, EventArgs e) { PersonForm personForm = new PersonForm(this); personForm.Show(); } public void addPerson(String personName, String dateOfBirth) { ListViewItem newItem = new ListViewItem(personName); newItem.SubItems.Add(dateOfBirth); personListView.Items.Add(newItem); } private void deleteItemButton_Click(object sender, EventArgs e) { foreach (ListViewItem item in personListView.SelectedItems) { personListView.Items.Remove(item); } } } }
Version data entries
30 entries across 30 versions & 2 rubygems