Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
 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);
 }
Ejemplo n.º 7
0
 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();
 }
Ejemplo n.º 8
0
 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);
 }
Ejemplo n.º 9
0
 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);
 }
Ejemplo n.º 10
0
 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;
 }