コード例 #1
0
        public void GetDataTest()
        {
            ContainsDataTest();

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

            Assert.NotNull(pastedKeyFrame);
            Assert.Equal(0, _testSegmentModel.KeyFrames[1].CompareTo(pastedKeyFrame));
        }
コード例 #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);
        }
コード例 #3
0
ファイル: TableViewModel.cs プロジェクト: Lozov-Petr/Schedule
        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;
        }