private void menuItem2_Click(object sender, System.EventArgs e) { EcywareServicesCreateAccount createAccount = new EcywareServicesCreateAccount(); if ( createAccount.ShowDialog() == DialogResult.OK ) { txtUsername.Text = createAccount.UserName; } }
private void lnkCreateNewAccount_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) { EcywareServicesCreateAccount createAccount = new EcywareServicesCreateAccount(); if ( createAccount.ShowDialog() == DialogResult.OK ) { txtUsername.Text = createAccount.UserName; } }