private void linkLabel1_Click(object sender, EventArgs e) { catchusepassEventArgs r = new catchusepassEventArgs(textBox1.Text, textBox2.Text); catchusepass(this, r); this.Close(); }
private void Catchusepass(object sender, catchusepassEventArgs e) { this.password = e.Password; this.username = e.Username; }