public void GetDataTest()
        {
            ContainsDataTest();

            MockKeyFrameModel pastedKeyFrame = _clipboardService.GetData <MockKeyFrameModel>();

            Assert.NotNull(pastedKeyFrame);
            Assert.Equal(0, _testSegmentModel.KeyFrames[1].CompareTo(pastedKeyFrame));
        }
Ejemplo n.º 2
0
        private void OnPasteClassCommand()
        {
            if (_selectedCard == null)
            {
                return;
            }
            if (_selectedCard.Class == null)
            {
                _selectedCard.Class = _groupClasses.SetClass(_selectedRow, _selectedColumn, new ClassRecord());
            }
            var cliped = ClipboardService.GetData <ClassRecord>();

            ClassRecord.Copy(cliped, _selectedCard.Class);
        }
Ejemplo n.º 3
0
        private void OnPasteClassCommand()
        {
            if (_selectedCard == null)
            {
                return;
            }
            if (_selectedCard.Class == null)
            {
                _classesTable.Table[_selectedRow][_selectedColumn] = new ClassRecord();
                _selectedCard.Class = _classesTable.Table[_selectedRow][_selectedColumn];
            }
            var cliped = ClipboardService.GetData <ClassRecord>();

            ClassRecord.Copy(cliped, _selectedCard.Class);
            //ClassesCards[_selectedRow][_selectedColumn].DataContext = _selectedCard;
        }