コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
ファイル: SettingsDialog.cs プロジェクト: gspatace/logexpert
		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);
				}
			}
		}