传输优化

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>

View 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);
}
}

View File

@@ -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; }
}
}

View 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);
}
}