예제 #1
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");
            }
        }
예제 #2
0
        private void btnDodajAdmina_Click(object sender, RoutedEventArgs e)
        {
            UnosAdmina u = new UnosAdmina(this);

            u.ShowDialog();
        }