Example #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            elevenDays_GameServiceClient.End(user.Login);

            MenuEDs menuEDs = new MenuEDs(user);

            menuEDs.Show();

            isEnded = true;
            this.Close();
        }
Example #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            this.Visibility = Visibility.Collapsed;

            UserDTO userDTO = elevenDays_GameServiceClient.Login(tbEmail.Text, tbPassword.Password);

            if (userDTO != null)
            {
                MenuEDs menuWindow = new MenuEDs(userDTO);
                menuWindow.Show();
                this.Close();
                return;
            }
            this.Visibility = Visibility.Visible;
        }