Esempio n. 1
0
 private void SetFilesShow(List <HslSoftFile> files)
 {
     //清楚缓存
     ClearControls();
     if (files?.Count > 0 && FileListControl.ActualWidth > 20)
     {
         //添加子控件
         foreach (var m in files)
         {
             UserFileRenderItem item = new UserFileRenderItem();
             FileListControl.Children.Add(item);
             item.SetFile(m);
         }
     }
 }
Esempio n. 2
0
 private void SetFilesShow(List <GroupFileItem> files)
 {
     //清楚缓存
     ClearControls();
     if (files?.Count > 0 && FileListControl.ActualWidth > 20)
     {
         //添加子控件
         foreach (var m in files)
         {
             UserFileRenderItem item = new UserFileRenderItem(
                 UserClient.Net_File_Client,
                 m_Factory,
                 m_Group,
                 m_Id,
                 DeleteCheck);
             FileListControl.Children.Add(item);
             item.SetFile(m, () => m.Owner == UserClient.UserAccount.UserName);
         }
     }
 }