示例#1
0
        void timelineView_ActiveDataChanged(object sender, EventArgs e)
        {
            if (propTimelineData != null)
            {
                propTimelineData.editingCompleted();
            }
            propTimelineData = (PropTimelineData)timelineView.CurrentData;
            if (propTimelineData != null)
            {
                propEditController.ShowTools = false;
                propTimelineData.editingStarted();
            }
            else
            {
                propEditController.ShowTools = true;
                if (propEditController.CurrentShowPropAction != null)
                {
                    propEditController.CurrentShowPropAction._movePreviewProp(propEditController.CurrentShowPropAction.Translation, propEditController.CurrentShowPropAction.Rotation);
                }
            }

            EditInterfaceHandler editInterfaceHandler = ViewHost.Context.getModel <EditInterfaceHandler>(EditInterfaceHandler.DefaultName);

            if (editInterfaceHandler != null)
            {
                if (propTimelineData != null)
                {
                    editInterfaceHandler.changeEditInterface(propTimelineData.Action.EditInterface);
                }
                else if (propData != null)
                {
                    editInterfaceHandler.changeEditInterface(propData.getEditInterface());
                }
            }
        }
        public PropTimelineData createData(ShowPropAction showProp, ShowPropSubAction subAction, PropEditController propEditController)
        {
            PropTimelineData timelineData = new PropTimelineData(subAction, propEditController);

            actionDataBindings.Add(subAction, timelineData);
            return(timelineData);
        }
示例#3
0
        private void removeCurrentData()
        {
            PropTimelineData propTlData = (PropTimelineData)timelineView.CurrentData;

            propData.removeSubAction(propTlData.Action);
        }