コード例 #1
0
        private void giveUp3_Click(object sender, RoutedEventArgs e)
        {
            UcitajDatotekuResursa();
            this.Visibility = Visibility.Collapsed;
            UcitajDatotekuResursa();
            PocetniProzor pocetniProzor = Window.GetWindow(this) as PocetniProzor;

            if (pocetniProzor != null)
            {
                UcitajDatotekuResursa();
                pocetniProzor.Vinograd.Visibility = Visibility.Visible;
                this.Visibility = Visibility.Collapsed;
            }
        }
コード例 #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            //define local variables from the user inputs
            string user = UserU.Text;
            string pass = PasswordU.Password;

            //check if eligible to be logged in
            if (login.IsLoggedIn(user, pass))
            {
                PocetniProzor test = new PocetniProzor();
                test.Show();
                this.Close();
            }
            else
            {
                NeuspesanLogin login = new NeuspesanLogin();
                login.ShowDialog();
            }
        }