mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-03-24 00:36:41 +08:00
传输优化
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user