protected void btnNovaOtpremnica_onClick(object sender, EventArgs e)
 {
     MyStockManager.OtpremnicaNewDetailsWindow winNovaOtpremnica = new OtpremnicaNewDetailsWindow();
     winNovaOtpremnica.WindowPosition = Gtk.WindowPosition.CenterAlways;
     winNovaOtpremnica.Show();
     winNovaOtpremnica.Destroyed += new EventHandler(winNovaOtpremnica_Destroyed);
 }
 protected void btnDetaljiOtpremnice_onClick(object sender, EventArgs e)
 {
     if (isRowSelected())
     {
         OtpremnicaTreeNode otn = (MyStockManager.OtpremnicaTreeNode)nodeview1.NodeSelection.SelectedNode;
         MyStockManager.OtpremnicaNewDetailsWindow winDetaljiOtpremnica = new OtpremnicaNewDetailsWindow(otn.IdOtpremnica);
         winDetaljiOtpremnica.WindowPosition = Gtk.WindowPosition.CenterAlways;
         winDetaljiOtpremnica.Show();
     }
 }