Ejemplo n.º 1
0
        public void loadFamille()
        {
            Dictionary <String, String> listfamille = lite.getAllFamilles();

            listefamilleDatagrid.Rows.Clear();
            String[] row;
            foreach (KeyValuePair <String, String> famille in listfamille)
            {
                row    = new string[2];
                row[0] = famille.Key;
                row[1] = famille.Value;
                listefamilleDatagrid.Rows.Add(row);
            }

            if (loaded == 1 && listefamilleDatagrid.Rows.Count > 0)
            {
                listefamilleDatagrid.ClearSelection();
            }
        }