private void UpdateObjectData(DataGridViewRow row, ObjectData objectData) { if (this.filter == null) { if (this.folder == null || string.IsNullOrEmpty(this.filterText)) { App.Folder.CreateTree(this.folder); this.detailInfo.UpdateData(); } else { if (!objectData.Filter(this.folder, this.filterText)) { this.gridData.Rows.Remove(row); App.Folder.UpdateFilteredFolders(objectData); if (this.gridData.Rows.Count == 0) { this.SetDetailInfoData(null); App.Folder.DeleteFilterFolder(this.folder, this.filterText); } } else { this.detailInfo.UpdateData(); } } } else { if (!objectData.Filter(this.filter)) { this.gridData.Rows.Remove(row); if (this.gridData.Rows.Count == 0) { this.SetDetailInfoData(null); } } else { this.detailInfo.UpdateData(); } } row.Cells[0].Value = objectData[SystemProperty.Name]; }