public void setVrednosti(Osoba o)
 {
     listBox1.Items.Add(o.imeprezime);
     listBox1.Items.Add(o.kabinet);
     listBox1.Items.Add(o.konsultacije);
     listBox1.Items.Add(o.mail);
     listBox1.Items.Add(o.predmeti);
     listBox1.Items.Add(o.zvanje);
 }
 public AdresarItem(Osoba o)
 {
     this.o = o;
     this.MouseLeftButtonDown += (oo, ee) =>
     {
         det = new Details(o);
         det.Loaded += SlajdULevo;
         Animate.SlideDown(Adresar.pgAdresar.tastatura);
         det.Focusable = true;
         det.Focus();
         det.ShowDialog();
     };
     InitializeComponent();
 }
 public Details(Osoba o)
 {
     InitializeComponent();
     this.Width = System.Windows.SystemParameters.PrimaryScreenWidth/2;
     this.Height = System.Windows.SystemParameters.PrimaryScreenHeight;
     this.Left = System.Windows.SystemParameters.PrimaryScreenWidth/2;
     this.Top = 0;
     this.Background = Brushes.White;
     this.o = o;
     listBox1.Items.Add(o.imeprezime);
     listBox1.Items.Add(o.kabinet);
     listBox1.Items.Add(o.konsultacije);
     listBox1.Items.Add(o.mail);
     listBox1.Items.Add(o.predmeti);
     listBox1.Items.Add(o.zvanje);
 }