Пример #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            AdminHome www = new AdminHome();

            www.Show();
            this.Close();
        }
Пример #2
0
        private async void LogInBttn_Click(object sender, RoutedEventArgs e)
        {
            System.Console.WriteLine("Dugme Pressed");
            usrName = usrNameTextBox.Text;
            pass    = passTextBox.Text;
            bool b;

            b = await controller.ConnectAsync(usrName, pass);

            System.Console.WriteLine("Zavrsio sam await u eventu");
            if (b)
            {
                AdminHome adminHome = new AdminHome();
                NavigationService.Navigate(adminHome);
            }
            else
            {
                msgLabel.Content = "Wrong username/password";
            }
        }