private VirtualizingList <MessageModel> InvokeLoadMsg() { var watcher = new Stopwatch(); watcher.Start(); //邮件总数 var count = DbOperator.GetMessageCount(_dbHelper); //获取邮件 var mailProvider = new MessageProvider(count, 1000) { DbHelper = _dbHelper }; var list = new VirtualizingList <MessageModel>(mailProvider, 100, 1000); watcher.Stop(); TotalTime = watcher.ElapsedMilliseconds.ToString(CultureInfo.InvariantCulture); return(list); }