public void AddEntry(string Key, string Value) { if (!String.IsNullOrEmpty(Key)) { Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; } DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; AddRow(r); }
private DataGridViewExRow CreateRow(string Key, string Value) { if (!String.IsNullOrEmpty(Key)) { Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; } DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; return(r); }
public void AddEntry(string Key, string Value, IEnumerable <ToolStripMenuItem> contextMenuItems) { if (!String.IsNullOrEmpty(Key)) { Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; } DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; r.Tag = contextMenuItems; AddRow(r); }
public void AddEntry(string Key, string Value, Color fontColor) { if (!String.IsNullOrEmpty(Key)) { Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; } DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; r.Cells[1].Style.ForeColor = fontColor; AddRow(r); dataGridViewEx1.DefaultCellStyle = new DataGridViewCellStyle(); }
internal void AddEntryLink(string Key, string Value, List <ToolStripMenuItem> contextMenuItems, Action action) { if (!String.IsNullOrEmpty(Key)) { Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; } DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1] = new DataGridViewLinkCell(); r.Cells[1].Value = Value; r.Cells[1].Tag = action; r.Tag = contextMenuItems; AddRow(r); }
internal void AddEntryLink(string Key, string Value, IEnumerable<ToolStripMenuItem> contextMenuItems, Action action) { if (!String.IsNullOrEmpty(Key)) Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1] = new DataGridViewLinkCell(); r.Cells[1].Value = Value; r.Cells[1].Tag = action; r.Tag = contextMenuItems; AddRow(r); }
public void AddEntry(string Key, string Value, IEnumerable<ToolStripMenuItem> contextMenuItems, Color fontColor) { if (!String.IsNullOrEmpty(Key)) Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; r.Cells[1].Style.ForeColor = fontColor; r.Tag = contextMenuItems; AddRow(r); dataGridViewEx1.DefaultCellStyle = new DataGridViewCellStyle(); }
public void AddEntry(string Key, string Value) { if (!String.IsNullOrEmpty(Key)) Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; AddRow(r); }
public void AddEntry(string Key, string Value, List<ToolStripMenuItem> contextMenuItems) { if (!String.IsNullOrEmpty(Key)) Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; r.Tag = contextMenuItems; AddRow(r); }
private DataGridViewExRow CreateRow(string Key, string Value) { if (!String.IsNullOrEmpty(Key)) Key += Messages.GENERAL_PAGE_KVP_SEPARATOR; DataGridViewExRow r = new DataGridViewExRow(); r.CreateCells(dataGridViewEx1); r.Cells[0].Value = Key; r.Cells[1].Value = Value; return r; }