修复readme,完善客户端共享文件控件,更改成了一个更加通用的文件管理控件
This commit is contained in:
@@ -557,7 +557,7 @@ namespace 软件系统客户端模版
|
||||
/// <summary>
|
||||
/// 文件显示的控件
|
||||
/// </summary>
|
||||
private UIControls.ShareFilesRender UIControls_Files { get; set; }
|
||||
private UIControls.GroupFilesRender UIControls_Files { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用于聊天的控件
|
||||
@@ -595,7 +595,7 @@ namespace 软件系统客户端模版
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
UIControls_Files = new UIControls.ShareFilesRender("ShareFiles", "", "")
|
||||
UIControls_Files = new UIControls.GroupFilesRender("ShareFiles", "", "")
|
||||
{
|
||||
Visible = false,
|
||||
Parent = panel_main,//决定了放在哪个界面显示,此处示例
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace 软件系统客户端模版.UIControls
|
||||
{
|
||||
partial class ShareFilesRender
|
||||
partial class GroupFilesRender
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
@@ -16,11 +16,11 @@ using System.Runtime.InteropServices;
|
||||
|
||||
namespace 软件系统客户端模版.UIControls
|
||||
{
|
||||
public partial class ShareFilesRender : UserControl
|
||||
public partial class GroupFilesRender : UserControl
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
public ShareFilesRender(string factory, string group, string id)
|
||||
public GroupFilesRender(string factory, string group, string id)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace 软件系统客户端模版.UIControls
|
||||
|
||||
private void userButton_refresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
OperateResult result = UserClient.Net_File_Client.DownloadPathFileNames(out GroupFileItem[] files, "ShareFiles", "", "");
|
||||
OperateResult result = UserClient.Net_File_Client.DownloadPathFileNames(out GroupFileItem[] files, m_Factory, m_Group, m_Id);
|
||||
if(result.IsSuccess)
|
||||
{
|
||||
Cache_Files = new List<GroupFileItem>(files);
|
||||
@@ -82,11 +82,11 @@
|
||||
<Compile Include="UIControls\RenderMain.Designer.cs">
|
||||
<DependentUpon>RenderMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UIControls\ShareFilesRender.cs">
|
||||
<Compile Include="UIControls\GroupFilesRender.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UIControls\ShareFilesRender.Designer.cs">
|
||||
<DependentUpon>ShareFilesRender.cs</DependentUpon>
|
||||
<Compile Include="UIControls\GroupFilesRender.Designer.cs">
|
||||
<DependentUpon>GroupFilesRender.cs</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="FormLogin.resx">
|
||||
<DependentUpon>FormLogin.cs</DependentUpon>
|
||||
@@ -110,8 +110,8 @@
|
||||
<EmbeddedResource Include="UIControls\RenderMain.resx">
|
||||
<DependentUpon>RenderMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="UIControls\ShareFilesRender.resx">
|
||||
<DependentUpon>ShareFilesRender.cs</DependentUpon>
|
||||
<EmbeddedResource Include="UIControls\GroupFilesRender.resx">
|
||||
<DependentUpon>GroupFilesRender.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<None Include="app.config" />
|
||||
<None Include="packages.config" />
|
||||
|
||||
Reference in New Issue
Block a user