示例#1
0
        public frmAgregarUsuario() :
            base(Gtk.WindowType.Toplevel)
        {
            this.Build();

            //Precarga de los datos en el TreeView
            this.tvUsuarios.Model = dtu.listarUsuario();
            string[] titulos = { "ID",  "NOMBRE",        "APELLIDO", "USUARIO",
                                 "PWD", "FECHACREACION", "ESTADO" };

            for (int i = 0; i < titulos.Length; i++)
            {
                this.tvUsuarios.AppendColumn(titulos[i], new CellRendererText(), "text", i);
            }
        }