Exemplo n.º 1
0
        protected override void OnAssetDataLoaded(CommeillFautAsset asset)
        {
            this._socialExchangeList       = new BindingListView <SocialExchangeDTO>((IList)null);
            gridSocialExchanges.DataSource = this._socialExchangeList;

            conditions = new ConditionSetView();
            conditionSetEditorControl.View = conditions;
            conditions.OnDataChanged      += ConditionSetView_OnDataChanged;


            this._socialExchangeList.DataSource = LoadedAsset.GetAllSocialExchanges().ToList();

            EditorTools.HideColumns(gridSocialExchanges, new[] {
                PropertyUtil.GetPropertyName <SocialExchangeDTO>(dto => dto.Id),
                PropertyUtil.GetPropertyName <SocialExchangeDTO>(dto => dto.StartingConditions)
            });



            if (this._socialExchangeList.Any())
            {
                var ra = LoadedAsset.GetSocialExchange(this._socialExchangeList.First().Id);
                UpdateConditions(ra);
            }
        }