Пример #1
0
        private void Paste()
        {
            if (clipboard is ActorExtraData)
            {
                ActorExtraData           ExtraData    = (clipboard as ActorExtraData);
                IActorExtraDataInterface NewExtraData = ActorFactory.CreateDuplicateExtraData(ExtraData.BufferType, ExtraData.Data);

                TreeNode SelectedNode = ActorTreeView.SelectedNode;
                if (ActorTreeView.SelectedNode.Text.Equals("Extra Data"))
                {
                    ActorExtraData ExistingExtraData = (SelectedNode.Tag as ActorExtraData);
                    if (ExtraData.BufferType == ExistingExtraData.BufferType)
                    {
                        ExistingExtraData.Data = NewExtraData;
                    }
                }
            }
        }
Пример #2
0
        private void Paste()
        {
            if (clipboard is ActorExtraData)
            {
                ActorExtraData           ExtraData    = (clipboard as ActorExtraData);
                IActorExtraDataInterface NewExtraData = ActorFactory.CreateDuplicateExtraData(ExtraData.BufferType, ExtraData.Data);

                TreeNode SelectedNode = ActorTreeView.SelectedNode;
                if (ActorTreeView.SelectedNode.Text.Equals("Extra Data"))
                {
                    ActorExtraData ExistingExtraData = (SelectedNode.Tag as ActorExtraData);
                    if (ExtraData.BufferType == ExistingExtraData.BufferType)
                    {
                        ExistingExtraData.Data = NewExtraData;
                    }
                }

                Text          = Language.GetString("$ACTOR_EDITOR_TITLE") + "*";
                bIsFileEdited = true;
            }
        }