Example #1
0
 public FDQueueItem(string filePath, FileAttributes fileType, FDItemStatus st)
 {
     path = filePath;
     progress = 0;
     whenQueued = DateTime.UtcNow;
     kind = fileType;
     checksum = null;
     guid = Guid.NewGuid();
     status = st;
 }
Example #2
0
    //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);
        }
    }