public UserListDiag(LoginForm lf) { InitializeComponent(); lbUsers.Items.Add("pippo\tantani\t12345678901234567890123456789012"); lbUsers.Items.Add("pluto\tblinda\t21098765432109876543210987654321"); this.lf = lf; Invalidate(); }
private void but_loginData_Click(object sender, EventArgs e) { LoginForm lg = new LoginForm(user,password,key,url); if(lg.ShowDialog()==DialogResult.OK) { user = lg.user; password = lg.passwd; key = lg.key; url = lg.url; } }