private void NewMarketRetProc(Form form, object data) { BOMarket mktBo = (BOMarket)data; MarketDetaiedlMD detailedMkt = new MarketDetaiedlMD((MarketMD)mktBo.GetBOTable()); List <CountryMD> cty = mktBo.GetMktCountry(); detailedMkt.Countries = mktBo.GetCountryString(); objList.AddObject(detailedMkt); }
private void objList_RowNumberDblClick(BrightIdeasSoftware.OlvListViewHitTestInfo hti) { MarketDetaiedlMD obj = (MarketDetaiedlMD)hti.RowObject; frmMarketMD frmMktMd = new frmMarketMD(BOIDEnum.Market); frmMktMd.MdiParent = this.MdiParent; frmMktMd.FormMode = NanCrm.FormMode.Ok; frmMktMd.UpdateProc = MarketMDUpdateProc; //int id = ((MarketDetaiedlMD)hti.RowObject).ID; //frmMktMd.LoadDataById(id); frmMktMd.SetBOTable(((MarketDetaiedlMD)hti.RowObject).GetOrignalMD()); frmMktMd.Show(); }
private void MarketMDUpdateProc(Form form, object data) { BOMarket mktBo = (BOMarket)data; MarketDetaiedlMD detailedMkt = new MarketDetaiedlMD((MarketMD)mktBo.GetBOTable()); List <CountryMD> cty = mktBo.GetMktCountry(); detailedMkt.Countries = mktBo.GetCountryString(); if (objList.FocusedItem != null) { objList.GetItem(objList.FocusedItem.Index).RowObject = detailedMkt; } objList.RefreshSelectedObjects(); }