Exemple #1
0
 protected void PrikaziStatus()
 {
     current.Clear();
     foreach (NarudzbeNode n in nodeviewNarudzbe.NodeStore)
     {
         foreach (StavkaNarudzbeNode ns in n.stavkeNarudzbeNodeStore)
         {
             current.AddNode(ns);
         }
     }
     nodeviewNarudzbeStatus.NodeStore = current;
 }
Exemple #2
0
        protected void OnButtonSearchClicked(object sender, EventArgs e)
        {
            if (entrySearch.Text == "")
            {
                nodeviewStavke.NodeStore = narudzba.stavkeNarudzbeNodeStore;
            }
            else
            {
                StavkaNarudzbeNodeStore nsns = new StavkaNarudzbeNodeStore();

                foreach (StavkaNarudzbeNode nsn in narudzba.stavkeNarudzbeNodeStore)
                {
                    if (nsn.Sifra.ToLower().Contains(entrySearch.Text.ToLower()) || nsn.Naziv.ToLower().Contains(entrySearch.Text.ToLower()))
                    {
                        nsns.AddNode(nsn);
                    }
                }

                nodeviewStavke.NodeStore = nsns;
                nodeviewStavke.Selection.SelectPath(new TreePath("0"));
            }
        }