示例#1
0
        private void UpdateViewData()
        {
            listView.Items.Clear();
            listView.Items.AddRange(
                _adapter
                .GetItems(_service.GetAll())
                .ToArray()
                );

            UpdateButtons();
        }
示例#2
0
        private void UpdateViewData(IEnumerable <Movie> items)
        {
            listView.Items.Clear();

            listView.Items.AddRange(
                _adapter
                .GetItems(items)
                .ToArray()
                );

            UpdateButtons();
        }