public KfsFileDownloadedNotificationItem(AnpMsg _msg, IAppHelper _helper, KfsServerFile f) : base(_msg, KAnpType.KANP_NS_KFS, _helper) { m_downloaderUID = _msg.Elements[2].UInt32; m_uploaderUID = f.CurrentVersion.UserID; m_fileName = f.Name; m_fileRelativePath = f.RelativePath; m_notificationToTake = NotificationEffect.ShowPopup; }
/// <summary> /// Add the file specified in the appropriate uploader set. /// </summary> protected void AddUpload(KfsServerFile f) { KfsServerFileUploader u = GetUploader(); if (u == null) { u = new KfsServerFileUploader(Share, UserID, CommitID); Share.ServerView.UploaderTree[CommitID] = u; } u.FileTree[f.Inode] = f; f.UploaderSet.Add(u); }