Ejemplo n.º 1
0
        public static void LoadHorizontalName(DataGridView dgv, int mineId)
        {
            var horizontals = Horizontal.FindAllByMineId(mineId);

            if (horizontals != null)
            {
                DataBindListControl(dgv, horizontals);
            }
        }
Ejemplo n.º 2
0
        public static void LoadHorizontalName(ListControl lb, int mineId,
                                              String selectedText = "")
        {
            var horizontals = Horizontal.FindAllByMineId(mineId);

            if (horizontals != null)
            {
                DataBindListControl(lb, horizontals, "HorizontalName",
                                    "HorizontalId", selectedText);
            }
        }