Exemplo n.º 1
0
        private void Odustani_Click(object sender, RoutedEventArgs e)
        {
            Panel.Children.Clear();
            UserControl usc = new PocetnaStranica();

            Panel.Children.Add(usc);
        }
Exemplo n.º 2
0
        public void Potvrdi_click(object sender, RoutedEventArgs e)
        {
            String f = bingPathToAppDir(@"JsonFiles\feedback.json");

            if (odlicno == true)
            {
                ocena = 5;
            }
            else if (vrlodobro == true)
            {
                ocena = 4;
            }
            else if (dobro == true)
            {
                ocena = 3;
            }
            else if (zadovoljavajuce == true)
            {
                ocena = 2;
            }
            else
            {
                ocena = 1;
            }
            foreach (ManagerUser user in menadzeri)
            {
                if (user.specialNotifications == null)
                {
                    user.specialNotifications = new List <ManagerNotification> ();
                }
                List <ManagerNotification> obavestenja = user.specialNotifications;

                obavestenja.Add(new ManagerNotification("Ocena sistema od strane sekretara  \n" + sekretar.firstName + " " + sekretar.secondName + "  - answer  -" + ocena));
                user.specialNotifications = obavestenja;
                cont.Update(user);
            }

            MessageBox.Show("Uspesno ste ocenili rad softvera", "Vas Utisak", MessageBoxButton.OK, MessageBoxImage.Information);
            Panel.Children.Clear();
            UserControl usc = new PocetnaStranica();

            Panel.Children.Add(usc);
        }