Exemplo n.º 1
0
        protected void btnNova_onClick(object sender, EventArgs e)
        {
            PrimkaNewDetailsWindow novaPrimka = new PrimkaNewDetailsWindow();

            novaPrimka.WindowPosition = WindowPosition.CenterAlways;
            novaPrimka.Show();

            novaPrimka.Destroyed += new EventHandler(novaPrimka_onDestroy);
        }
Exemplo n.º 2
0
 protected void btnDetalji_onClick(object sender, EventArgs e)
 {
     if (isRowSelected())
     {
         PrimkaTreeNode         odabranaPrimka = (MyStockManager.PrimkaTreeNode)nodeview1.NodeSelection.SelectedNode;
         PrimkaNewDetailsWindow winDetalji     = new PrimkaNewDetailsWindow(odabranaPrimka.IdPrimka, 1);
         winDetalji.WindowPosition = Gtk.WindowPosition.CenterAlways;
         winDetalji.Show();
     }
 }