private void clearZonesButton_Click(object sender, EventArgs e) { if (MessageBox.Show("Are you sure you want to clear all sections?", "Are you sure?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) != DialogResult.Yes) { return; } cuts.Clear(); updateListView(); }
public void UpdateCutList() { Cuts.Clear(); Cut c = FirstCut; while (c != null) { Cuts.Add(c); c = c.NextCut; } }