示例#1
0
        internal void UpdateData()
        {
            FileList.Items.Clear();
            fileList = client.GetAllNonDeletedFiles();
            fileList = fileList.OrderBy(e => e.CreatedAt).ToArray();

            fileList = FilterDataByActiveFilters(fileList.ToList()).ToArray();

            foreach (MyPhotosClientWCF.File f in fileList)
            {
                if (f.Deleted == false)
                {
                    ListViewItem currentFileRow = new ListViewItem(f.Name);
                    currentFileRow.SubItems.Add(f.Path);
                    FileList.Items.Add(currentFileRow);
                }
            }
            PropertiesList.Items.Clear();
            propertyList = client.GetAllProperties().ToArray();
            propertyList = propertyList.OrderBy(p => p.Id.ToString()).ToArray();

            foreach (MyPhotosClientWCF.Property p in propertyList)
            {
                ListViewItem currentFilterRow = new ListViewItem(p.Title);
                currentFilterRow.SubItems.Add(p.Description);
                PropertiesList.Items.Add(currentFilterRow);
            }
        }