Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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();
        }
Exemple #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);
        }
Exemple #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);
 }
Exemple #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();
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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;
 }