传输优化

This commit is contained in:
liu.wenjie
2021-03-17 16:08:13 +08:00
parent 1451352125
commit 0af0e8b01a
348 changed files with 12192 additions and 863190 deletions

View File

@@ -7,6 +7,7 @@ using System.Windows.Forms;
namespace CommonMethods
{
[Serializable]
public class IToolInfo
{
/// <summary>
@@ -26,9 +27,9 @@ namespace CommonMethods
/// </summary>
public object tool { get; set; }
/// <summary>
/// 工具窗体
/// 工具窗体,由于无法对Form进行序列化所以作为静态变量
/// </summary>
public Form FormTool { get; set; }
public static Form FormTool { get; set; }
/// <summary>
/// 工具窗体名
/// </summary>
@@ -116,6 +117,16 @@ namespace CommonMethods
toolOutput.RemoveAt(i);
}
}
public Form GetFormTool()
{
return FormTool;
}
public void SetFormTool(Form myForm)
{
FormTool = myForm;
}
}
/// <summary>