mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-03-24 00:36:41 +08:00
传输优化
This commit is contained in:
Binary file not shown.
@@ -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>
|
||||
|
||||
27
CommonMethods/Interface/IToolRun.cs
Normal file
27
CommonMethods/Interface/IToolRun.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* ==============================================================================
|
||||
*
|
||||
* Filename: IToolRun
|
||||
* Description:
|
||||
*
|
||||
* Version: 1.0
|
||||
* Created: 2021/2/25 14:49:20
|
||||
*
|
||||
* Author: liu.wenjie
|
||||
*
|
||||
* ==============================================================================
|
||||
*/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CommonMethods.Interface
|
||||
{
|
||||
public interface IToolRun
|
||||
{
|
||||
void ToolRun(int toolIndex, int inputItemNum, TreeNode selectNode, FormLog myFormLog, FormImageWindow myFormWindow, List<IToolInfo> L_toolList);
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,10 @@ namespace CommonMethods
|
||||
/// </summary>
|
||||
public Dictionary<TreeNode, TreeNode> D_itemAndSource { get; set; } = new Dictionary<TreeNode, TreeNode>();
|
||||
/// <summary>
|
||||
/// JOB上的树结构,取消该参数,TreeView无法二进制序列化
|
||||
/// </summary>
|
||||
//public TreeView tvwOnWorkJob { get; set; } = new TreeView();
|
||||
/// <summary>
|
||||
/// 工具输入项个数
|
||||
/// </summary>
|
||||
public int inputItemNum = 0;
|
||||
@@ -34,9 +38,9 @@ namespace CommonMethods
|
||||
/// </summary>
|
||||
public int outputItemNum = 0;
|
||||
/// <summary>
|
||||
/// 流程运行结果图像
|
||||
/// 流程运行结果图像,取消,无法序列化
|
||||
/// </summary>
|
||||
public HObject jobResultImage { get; set; } = new HObject();
|
||||
public static HObject jobResultImage { get; set; } = new HObject();
|
||||
/// <summary>
|
||||
/// 流程树中节点的最大长度
|
||||
/// </summary>
|
||||
@@ -83,11 +87,11 @@ namespace CommonMethods
|
||||
/// <summary>
|
||||
/// 流程编辑时的右击菜单
|
||||
/// </summary>
|
||||
public ContextMenuStrip rightClickMenu { get; set; } = new ContextMenuStrip();
|
||||
public static ContextMenuStrip rightClickMenu { get; set; } = new ContextMenuStrip();
|
||||
/// <summary>
|
||||
/// 在空白除右击菜单
|
||||
/// </summary>
|
||||
public ContextMenuStrip rightClickMenuAtBlank { get; set; }
|
||||
public static ContextMenuStrip rightClickMenuAtBlank { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
27
CommonMethods/Interface/ToolRun.cs
Normal file
27
CommonMethods/Interface/ToolRun.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* ==============================================================================
|
||||
*
|
||||
* Filename: ToolRun
|
||||
* Description:
|
||||
*
|
||||
* Version: 1.0
|
||||
* Created: 2021/2/25 15:27:56
|
||||
*
|
||||
* Author: liu.wenjie
|
||||
*
|
||||
* ==============================================================================
|
||||
*/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CommonMethods.Interface
|
||||
{
|
||||
public interface IToolRun
|
||||
{
|
||||
void ToolRun(string jobName, int toolIndex, int inputItemNum, TreeNode selectNode, List<IToolInfo> L_toolList);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user