Esempio n. 1
0
        public static void LoadHorizontalName(DataGridView dgv, int mineId)
        {
            var horizontals = Horizontal.FindAllByProperty("mine.id", mineId);

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

            if (horizontals != null)
            {
                DataBindListControl(lb, horizontals, "name",
                                    "id", selectedText);
            }
        }