public NCSNgClient(NCSPlugin.NGType type, string source, DateTime regTime) : base(PluginTypeToApiType(type), source, regTime) { }
/// <summary> /// カラムを追加する /// </summary> /// <param name="columnExtention"></param> public void AddColumnExtention(NCSPlugin.IColumnExtention columnExtention) { if (columnExtention != null && columnExtention.Column != null) { if (columnExtention.Column.SortMode == DataGridViewColumnSortMode.Automatic) { columnExtention.Column.SortMode = DataGridViewColumnSortMode.Programmatic; } dataGridView1.Columns.Add(columnExtention.Column); _columnExtention.Add(columnExtention); } }
private void ColoringOwnerComment(NCSPlugin.IChat chat, System.Windows.Forms.DataGridViewCellFormattingEventArgs e) { if (e.ColumnIndex == 1 && chat.IsOwnerComment) { e.CellStyle.ForeColor = System.Drawing.Color.OrangeRed; } }