예제 #1
0
        private void CarregaPerfis()
        {
            //this.perfilGrid = new Grid(10, 74, 220, 364);
            this.perfilGrid = new Grid(10, 94, 220, 344);
            foreach (Perfil perfil in Global.bancoDados.Perfis)
            {
                this.perfilGrid.AddItem(perfil.Nome, perfil);
            }

            this.perfilGrid.Click_Item += new System.EventHandler(this.Click_SelecionaPerfil);
        }
예제 #2
0
        public void CarregaNiveis(Perfil perfil)
        {
            this.nivelGrid = new Grid(10, 94, 220, 344);

            foreach (Nivel nivel in perfil.GetNiveis())
            {
                this.nivelGrid.AddItem(nivel.Nome, nivel);
            }

            this.nivelGrid.Click_Item += new System.EventHandler(this.Click_SelecionaNivel);
        }