Ejemplo n.º 1
0
        private void Profile_Load(object sender, EventArgs e)
        {
            title           = da.getUserTitle(LogForm.thisUser);
            titleLabel.Text = title;

            email          = da.getUserMail(LogForm.thisUser);
            mailLabel.Text = email;

            nameLabel.Text = title;
            NetInfo netdat = new NetInfo();

            netdat.netData(LogForm.thisUser);
            myIP         = netdat.getLocalIP();
            ipLabel.Text = myIP;

            myPort         = da.getPort(LogForm.thisUser);
            portLabel.Text = myPort.ToString();

            List <proNetInfo> gridList = da.gridView();
            var bs   = new BindingSource();
            var list = new List <proNetInfo>(gridList);

            bs.DataSource            = list;
            dataGridView1.DataSource = bs;
        }