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); }
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); } }