Ejemplo n.º 1
0
        private void bbiNew_ItemClick(object sender, ItemClickEventArgs e)
        {
            RadnikGO trenutniGO = new RadnikGO()
            {
                ID       = 0,
                RadID    = Roditelj.ID,
                Zaduzio  = 0,
                Razduzio = 0
            };
            GOArgs myArgs = new GOArgs(trenutniGO);

            IzmjenaGO(this, myArgs);
        }
Ejemplo n.º 2
0
 private void gridView_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
 {
     // proslijedi
     if (!(LicenseManager.UsageMode == LicenseUsageMode.Designtime))
     {
         RadnikGO trenutniGO;
         try
         {
             trenutniGO = rds.GetByID((int)gridView.GetFocusedRowCellValue(gcID));
         }
         catch (Exception)
         {
             trenutniGO = new RadnikGO()
             {
                 ID = 0
             };
         }
         GOArgs myArgs = new GOArgs(trenutniGO);
         IzmjenaGO(this, myArgs);
     }
 }