修复readme,完善客户端共享文件控件,更改成了一个更加通用的文件管理控件
This commit is contained in:
@@ -44,7 +44,7 @@ namespace CommonLibrary
|
||||
**************************************************************************/
|
||||
|
||||
|
||||
SoftBasic.FrameworkVersion = new SystemVersion("1.7.8");
|
||||
SoftBasic.FrameworkVersion = new SystemVersion("1.7.9");
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<li>多客户端之间需要进行复杂数据交互的系统</li>
|
||||
</ul>
|
||||
|
||||
二次开发时需要特别注意的是在项目 **CommonLibrary** -> **ProtocolSupport** -> **CommonProtocol.cs** 中的参数需要根据实际全部修改,注意事项已在文件里说明。
|
||||
二次开发时需要特别注意的是在项目 **CommonLibrary** -> **UserSystem.cs** 中的参数需要根据实际全部修改,注意事项已在文件里说明。
|
||||
|
||||
## Contribute
|
||||
如果你也喜欢这个项目,可以点击右上角的star或是fork,如果发现了一些BUG或是需要更改的地方也可以直接发起pull request,当然也可以联系技术支持QQ群来联系我本人,或是发送邮件,具体参考下面。
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace 软件系统客户端Wpf.Views
|
||||
|
||||
private void Button_FileRefresh_Click(object sender, RoutedEventArgs 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);
|
||||
|
||||
@@ -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