private void SaveHighlightMaskList() { this.preferences.highlightMaskList.Clear(); foreach (DataGridViewRow row in this.highlightMaskGridView.Rows) { if (!row.IsNewRow) { HighlightMaskEntry entry = new HighlightMaskEntry(); entry.mask = (string)row.Cells[0].Value; entry.highlightGroupName = (string)row.Cells[1].Value; this.preferences.highlightMaskList.Add(entry); } } }
private void SaveHighlightMaskList() { this.Preferences.highlightMaskList.Clear(); foreach (DataGridViewRow row in this.highlightMaskGridView.Rows) { if (!row.IsNewRow) { HighlightMaskEntry entry = new HighlightMaskEntry(); entry.mask = (string)row.Cells[0].Value; entry.highlightGroupName = (string)row.Cells[1].Value; this.Preferences.highlightMaskList.Add(entry); } } }