Beispiel #1
0
        private void OK_Click(object sender, EventArgs e)
        {
            int ClientID = DataBaseGetRows.IsAdmin(LoginForm.Text, PasswordForm.Password.ToString());

            if (ClientID == 0)
            {
                admin.Visibility = Visibility.Visible;
                first.Visibility = Visibility.Hidden;
            }
            else if (ClientID > 0)
            {
                lawyer.Visibility = Visibility.Visible;
                first.Visibility  = Visibility.Hidden;
                LawyerData(ClientID);
            }
            else
            {
                ErroAuthorization.Visibility = Visibility.Visible;
            }
        }