Exemplo n.º 1
0
        private void BtnLogin_Click(object sender, EventArgs e)
        {
            HadoUIServiceClient client = new HadoUIServiceClient();
            var user = client.Login(txtBoxUserName.Text, txtPassword.Text);

            if (user != null)
            {
                //Application.Run(new SplashScreen());
                this.Hide();
                MainForm mainForm = new MainForm(user);

                mainForm.Show();
            }
            else
            {
                MessageBox.Show("Kullanıcı Adı veya Şifre Yanlış", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);
            }
        }