Exemplo n.º 1
0
        private void PanelAdmini_MouseDown(object sender, MouseButtonEventArgs e)
        {
            regulisiPanel(sender as WrapPanel);
            OsobaKontrola o = dajKliknutuKontrolu(sender as WrapPanel);

            if (o == null)
            {
                return;
            }
            txtAdminIme.Text     = (o.dajUsera() as Admin).Ime;
            txtAdminPrezime.Text = (o.dajUsera() as Admin).Prezime;
            txtAdminUser.Text    = o.dajUsera().UserName;
            txtAdminMail.Text    = o.dajUsera().Mail;
            o.Klik = false;
        }
Exemplo n.º 2
0
        private void btnUrediAdmina_Click(object sender, RoutedEventArgs e)
        {
            OsobaKontrola o = null;

            o = dajSelektovanuKontrolu(PanelAdmini);
            if (o != null)
            {
                UnosAdmina u = new UnosAdmina(o.dajUsera() as Admin, this);
                u.ShowDialog();
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("Morate selektovati nekog admina!", "Problem");
            }
        }