public CurdSample()
        {
            InitializeComponent();
            _service = new TestCurdService();
            _asyncRemoteCollectionView = new AsyncRemoteCollectionView(LoadAsync, OnAsyncLoadCompleted);
            var sortDescription = new SortDescription("Id", ListSortDirection.Descending);

            _asyncRemoteCollectionView.SortDescriptions.Add(sortDescription);
            DataContext = _asyncRemoteCollectionView;
            Loaded     += PagingSample_Loaded;
        }
        public TestModelWindow(TestCurdService curdService, TestModel testModel = null)
        {
            InitializeComponent();
            _isNewObject = testModel == null;
            if (testModel == null)
            {
                TestModel = new TestModel();
            }
            else
            {
                TestModel = new TestModel {
                    Age = testModel.Age, Name = testModel.Name, Id = testModel.Id
                }
            };

            DataContext  = TestModel;
            _curdService = curdService;
        }