예제 #1
0
        private void AddWatchDataConfig(WatchDataConfig config)
        {
            var row_index = DGView_WatchList.Rows.Add();
            var row_obj   = DGView_WatchList.Rows[row_index];

            SetWatchDataConfig(row_obj, config);

            /* エラー表示を更新 */
            UpdateEditStatus(row_obj);
        }
예제 #2
0
        private void SetWatchDataConfig(DataGridViewRow row_obj, WatchDataConfig config)
        {
            if (row_obj.Cells.Count > (int)ColumnId.Enable)
            {
                row_obj.Cells[(int)ColumnId.Enable].Value = config.Enable;
            }

            if (row_obj.Cells.Count > (int)ColumnId.Target)
            {
                row_obj.Cells[(int)ColumnId.Target].Value = config.WatchTarget;
            }

            if (row_obj.Cells.Count > (int)ColumnId.Expression)
            {
                row_obj.Cells[(int)ColumnId.Expression].Value = config.Expression;
            }

            if (row_obj.Cells.Count > (int)ColumnId.DetectCount)
            {
                row_obj.Cells[(int)ColumnId.DetectCount].Value = "";
            }

            if (row_obj.Cells.Count > (int)ColumnId.NtfEvent)
            {
                row_obj.Cells[(int)ColumnId.NtfEvent].Value = config.NtfEvent;
            }

            if (row_obj.Cells.Count > (int)ColumnId.NtfDialog)
            {
                row_obj.Cells[(int)ColumnId.NtfDialog].Value = config.NtfDialog;
            }

            if (row_obj.Cells.Count > (int)ColumnId.NtfMail)
            {
                row_obj.Cells[(int)ColumnId.NtfMail].Value = config.NtfMail;
            }
        }
예제 #3
0
 public WatchObject(WatchDataConfig config, PacketFilterController filter)
 {
     Config  = config;
     filter_ = filter;
 }