Exemple #1
0
        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();
            }
        }
Exemple #2
0
 public UserListItem(UserWindow uw)
 {
     InitializeComponent();
     _uw = uw;
 }