private void buttonSingIn_Click(object sender, EventArgs e) { string nameUser = this.loginLine.Text; char[] charsToTrim = { ' ', '\t', '\n', '\r' }; nameUser = nameUser.Trim(charsToTrim); if (nameUser != "" & nameUser != " " & nameUser != "\n") { this.Hide(); this.loginLine.Text = ""; UserWindow userWindow = new UserWindow(nameUser, this); userWindow.Show(); } else { this.loginLine.Focus(); } }
public UserListItem(UserWindow uw) { InitializeComponent(); _uw = uw; }