private void Siralama_FormClosing(object sender, FormClosingEventArgs e)
        {
            Lobi lobi = new Lobi();

            lobi.label1.Text = label1.Text;
            lobi.Show();
        }
Exemple #2
0
        private void LoginBtn_Click(object sender, EventArgs e)
        {
            bool result = login.LoginControl(username.Text, password.Text);

            if (result == true)
            {
                Lobi lobi   = new Lobi();
                int  userID = login.LoginID(username.Text, password.Text);
                lobi.label1.Text = userID.ToString();
                lobi.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("No Login");
            }
        }