public FDQueueItem(string filePath, FileAttributes fileType, FDItemStatus st) { path = filePath; progress = 0; whenQueued = DateTime.UtcNow; kind = fileType; checksum = null; guid = Guid.NewGuid(); status = st; }
//changes the "progress" secion on the tree view for the provided guid private void updateTree(Guid guid, string message, FDItemStatus status) { ListItem toUpdate = items.Find ( delegate(ListItem it) { return it.guid == guid; } ); if(!String.IsNullOrEmpty(toUpdate.file)) { treeview1.Model.SetValue (toUpdate.iter, 2, message); treeview1.Model.SetValue (toUpdate.iter, 4, status); } }