Beispiel #1
0
        public override void Initialize()
        {
            base.Initialize();

            DataModelPropertiesViewModel eventDataModel = GetEventDataModel();

            LeftSideSelectionViewModel.ChangeDataModel(eventDataModel);
        }
        public override void Initialize()
        {
            base.Initialize();

            DataModelPropertiesViewModel listDataModel = GetListDataModel();

            LeftSideSelectionViewModel.ChangeDataModel(listDataModel);

            // If this is a primitive list the user doesn't have much to choose, so preselect the list item for them
            if (DataModelConditionListPredicate.DataModelConditionList.IsPrimitiveList && DataModelConditionListPredicate.LeftPath == null)
            {
                DataModelConditionListPredicate.UpdateLeftSide(listDataModel.Children.FirstOrDefault()?.DataModelPath);
                Update();
            }
        }