Commit 66419989 LN

增加批量点位 偏移,旋转,复制,删除功能。

1 个父辈 70c89e8c
......@@ -36,8 +36,7 @@ namespace TSA_V.Common
[MyConfigComment("是否保存aoi检测原图")]
public static MyConfig<bool> Work_SaveAOIImg = false;
[MyConfigComment("是否保存aoi检测结果图")]
public static MyConfig<bool> Work_SaveAOIResult =false;
public static MyConfig<bool> Work_SaveAOIResult =false;
[MyConfigComment("工作模式")]
public static MyConfig<int> Work_WorkMode =0;
......@@ -45,7 +44,9 @@ namespace TSA_V.Common
public static MyConfig<int> Work_AuToModeSeconds = 5;
[MyConfigComment("是否需要统计")]
public static MyConfig<bool> Work_IsNeedCount = true ;
public static MyConfig<bool> Work_IsNeedCount = true;
[MyConfigComment("是否需要显示批量操作功能")]
public static MyConfig<bool> Work_ShowOperateBtn = true;
[MyConfigComment(" IO模块 0=康耐得 1=零点 2=南京实点 3=泥人科技,无线体")]
......
......@@ -8,6 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TSA_V.LoadCSVLibrary;
using System.Reflection;
namespace TSA_V.DeviceLibrary
{
......@@ -271,7 +272,18 @@ namespace TSA_V.DeviceLibrary
// this.ShowText = name;
//}
}
public SMTPointInfo(SMTPointInfo oldPointInfo)
{
// 使用反射获取属性并复制值
PropertyInfo[] properties = typeof(SMTPointInfo).GetProperties();
foreach (PropertyInfo property in properties)
{
if (property.CanWrite)
{
property.SetValue(this, property.GetValue(oldPointInfo));
}
}
}
/// <summary>
///组装信息编号
/// </summary>
......@@ -359,7 +371,12 @@ namespace TSA_V.DeviceLibrary
/// </summary>
public bool CheckOK = false;
public long pUTime = 0;
/// <summary>
/// 复制点位时自动设置组
/// </summary>
public int Group { get; set; } = 0;
public long pUTime { get; set; } = 0;
public string ToCSVStr()
{
string spilt = ",";
......@@ -397,33 +414,33 @@ namespace TSA_V.DeviceLibrary
/// <summary>
/// 点大小
/// </summary>
public int PointSizeX = 1;
public int PointSizeY = 1;
public int PenWidth = 2;
public int PointSizeX { get; set; } = 1;
public int PointSizeY { get; set; } = 1;
public int PenWidth { get; set; } = 2;
/// <summary>
/// 图片上的点的信息
/// </summary>
public DrawPointInfo imgP = null;
public DrawPointInfo imgP { get; set; } = null;
/// <summary>
/// 点类型,1=点,2=+,3=|,3=-,4=方形,5=圆圈
/// </summary>
public int PointType = 1;
public int PointType { get; set; } = 1;
public string ShowText = "";
/// <summary>
/// 是否禁用,默认0
/// </summary>
public bool Disable = false;
public bool Disable = false;
/// <summary>
/// 是否编辑成功
/// </summary>
public bool IsEdit = false;
public bool IsEdit =false;
/// <summary>
/// 极性,
/// </summary>
public int PolaritiesType = 0;
public int PolaritiesType { get; set; } = 0;
/// <summary>
/// 导出导入程序时使用
......
......@@ -300,13 +300,13 @@ namespace TSA_V.DeviceLibrary
//xy轴运动到固定点
if (TSAVBean.IsValidPosition(currPoint.NodePositionX, currPoint.NodePositionY))
{
LogUtil.info(" 程序【" + currBoard.boardName + "】插件【" + currPoint.pointName + "】,X轴【" + currPoint.NodePositionX + "】,Y轴【" + currPoint.NodePositionY + "】显示投影光标");
LogUtil.info(" 程序【" + currBoard.boardName + "】插件【" +currPoint.TagNo+"_"+ currPoint.PN + "】,X轴【" + currPoint.NodePositionX + "】,Y轴【" + currPoint.NodePositionY + "】显示投影光标");
TSAVBean.ShowPoint(currPoint.NodePositionX, currPoint.NodePositionY, currPoint.PointType,currPoint.PolaritiesType, currPoint.PointSizeX, currPoint.PointSizeY, currPoint.PenWidth, currPoint.ShowText, currBoard.PointColor);
waitList.Add(WaitResultInfo.WaitTime(1000));
}
else
{
LogUtil.info(" 程序【" + currBoard.boardName + "】插件【" + currPoint.PN + "】,X轴【" + currPoint.NodePositionX + "】,Y轴【" + currPoint.NodePositionY + "】坐标无效,不移动光标");
LogUtil.info(" 程序【" + currBoard.boardName + "】插件【" + currPoint.TagNo + "_" + currPoint.PN + "】,X轴【" + currPoint.NodePositionX + "】,Y轴【" + currPoint.NodePositionY + "】坐标无效,不移动光标");
}
}
......
......@@ -40,7 +40,7 @@ namespace TSA_V
}
else
{
MessageBox.Show("查询出错", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
MessageBox.Show(ResourceCulture.GetString("查询出错"), "", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
......@@ -60,7 +60,7 @@ namespace TSA_V
}
else
{
MessageBox.Show("查询出错", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
MessageBox.Show(ResourceCulture.GetString("查询出错"), "", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
......
......@@ -2743,4 +2743,33 @@
<data name = "isRestart" xml:space = "preserve"> <value> Changing this mode requires reloading the device, whether to restart the software now? </value> </data>
<data name = "FrmWork_btnResetAOI_Text" xml:space = "preserve"> <value> Reset </value> </data>
<data name = "shortageInfo" xml:space = "preserve"> <value> Outage information : </value> </data>
<data name = "FrmLogin_label3_Text" xml:space = "preserve"> <value> Neo Station </value> </data>
<data name = "FrmBoardInfo_btnMEdit_Text" xml:space = "preserve"> <value> Batch Operation </value> </data>
<data name = "FrmEditMPoint_Text" xml:space = "preserve"> <value> Point Batch Operation </value> </data>
<data name = "FrmEditMPoint_label6_Text" xml:space = "preserve"> <value> Delete Points from the Left List </value> </data>
<data name = "FrmEditMPoint_radioButton1_Text" xml:space = "preserve"> <value> Delete </value> </data>
<data name = "FrmEditMPoint_rdbPianyi_Text" xml:space = "preserve"> <value> Coordinate Offset/Rotation </value> </data>
<data name = "FrmEditMPoint_label3_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_label5_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_checkBox1_Text" xml:space = "preserve"> <value> Automatically Add Suffix to Number </value> </data>
<data name = "FrmEditMPoint_label2_Text" xml:space = "preserve"> <value> Column Spacing: </value> </data>
<data name = "FrmEditMPoint_label12_Text" xml:space = "preserve"> <value> Column: </value> </data>
<data name = "FrmEditMPoint_label11_Text" xml:space = "preserve"> <value> Row Spacing: </value> </data>
<data name = "FrmEditMPoint_label7_Text" xml:space = "preserve"> <value> Row: </value> </data>
<data name = "FrmEditMPoint_rdbCopy_Text" xml:space = "preserve"> <value> Copy </value> </data>
<data name = "FrmEditMPoint_label8_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_label122_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_label1_Text" xml:space = "preserve"> <value> ° </value> </data>
<data name = "FrmEditMPoint_label9_Text" xml:space = "preserve"> <value> X-Axis Offset →: </value> </data>
<data name = "FrmEditMPoint_label4_Text" xml:space = "preserve"> <value> Rotation Angle: </value> </data>
<data name = "FrmEditMPoint_label10_Text" xml:space = "preserve"> <value> Y-Axis Offset ↓: </value> </data>
<data name = "FrmEditMPoint_焊点列表_Text" xml:space = "preserve"> <value> List </value> </data>
<data name = "FrmEditMPoint_btnClose_Text" xml:space = "preserve"> <value> Return </value> </data>
<data name = "FrmEditMPoint_btnSave_Text" xml:space = "preserve"> <value> Save </value> </data>
<data name = "NoSaveBack" xml:space = "preserve"> <value> Return without Saving? </value> </data>
<data name = "FrmMaintenance_label1_Text" xml:space = "preserve"> <value> Neo Station </value> </data>
<data name = "FrmMaintenance_LblUserName_Text" xml:space = "preserve"> <value> admin/Admin </value> </data>
<data name = "FrmMaintenance_lblVersion_Text" xml:space = "preserve"> <value> V4.1.9152.25101 </value> </data>
<data name = "PWSureCopyPoint" xml:space = "preserve"> <value> Confirm Copy? Target is {0} Rows, {1} Columns, X Spacing={2}, Y Spacing={3} </value> </data>
<data name = "FrmEditMPoint_rdbDelete_Text" xml:space = "preserve"> <value> Delete </value> </data>
</root>
\ No newline at end of file
......@@ -2721,4 +2721,33 @@
<data name = "isRestart" xml:space = "preserve"> <value> 更改此模式需要重新加载设备,是否现在重启软件? </value> </data>
<data name = "FrmWork_btnResetAOI_Text" xml:space = "preserve"> <value> 还原 </value> </data>
<data name = "shortageInfo" xml:space = "preserve"> <value> 缺料信息: </value> </data>
<data name = "FrmLogin_label3_Text" xml:space = "preserve"> <value> Neo Station </value> </data>
<data name = "FrmBoardInfo_btnMEdit_Text" xml:space = "preserve"> <value> 批量操作 </value> </data>
<data name = "FrmEditMPoint_Text" xml:space = "preserve"> <value> 点位批量操作 </value> </data>
<data name = "FrmEditMPoint_label6_Text" xml:space = "preserve"> <value> 删除左侧列表中的点位 </value> </data>
<data name = "FrmEditMPoint_radioButton1_Text" xml:space = "preserve"> <value> 删除 </value> </data>
<data name = "FrmEditMPoint_rdbPianyi_Text" xml:space = "preserve"> <value> 坐标偏移/旋转 </value> </data>
<data name = "FrmEditMPoint_label3_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_label5_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_checkBox1_Text" xml:space = "preserve"> <value> 自动为位号增加后缀 </value> </data>
<data name = "FrmEditMPoint_label2_Text" xml:space = "preserve"> <value> 列间距: </value> </data>
<data name = "FrmEditMPoint_label12_Text" xml:space = "preserve"> <value> 列: </value> </data>
<data name = "FrmEditMPoint_label11_Text" xml:space = "preserve"> <value> 行间距: </value> </data>
<data name = "FrmEditMPoint_label7_Text" xml:space = "preserve"> <value> 行: </value> </data>
<data name = "FrmEditMPoint_rdbCopy_Text" xml:space = "preserve"> <value> 复制 </value> </data>
<data name = "FrmEditMPoint_label8_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_label122_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_label1_Text" xml:space = "preserve"> <value> ° </value> </data>
<data name = "FrmEditMPoint_label9_Text" xml:space = "preserve"> <value> X轴偏移量→: </value> </data>
<data name = "FrmEditMPoint_label4_Text" xml:space = "preserve"> <value> 旋转角度: </value> </data>
<data name = "FrmEditMPoint_label10_Text" xml:space = "preserve"> <value> Y轴偏移量↓: </value> </data>
<data name = "FrmEditMPoint_焊点列表_Text" xml:space = "preserve"> <value> 列表 </value> </data>
<data name = "FrmEditMPoint_btnClose_Text" xml:space = "preserve"> <value> 返回 </value> </data>
<data name = "FrmEditMPoint_btnSave_Text" xml:space = "preserve"> <value> 保存 </value> </data>
<data name = "NoSaveBack" xml:space = "preserve"> <value> 不保存直接返回? </value> </data>
<data name = "FrmMaintenance_label1_Text" xml:space = "preserve"> <value> Neo Station </value> </data>
<data name = "FrmMaintenance_LblUserName_Text" xml:space = "preserve"> <value> admin/Admin </value> </data>
<data name = "FrmMaintenance_lblVersion_Text" xml:space = "preserve"> <value> V4.1.9152.25101 </value> </data>
<data name = "PWSureCopyPoint" xml:space = "preserve"> <value> 确定复制?目标为{0}行,{1}列,X间距={2}, Y间距={3} </value> </data>
<data name = "FrmEditMPoint_rdbDelete_Text" xml:space = "preserve"> <value> 删除 </value> </data>
</root>
\ No newline at end of file
......@@ -2895,5 +2895,34 @@
<data name = "FrmBoardSelect_chbSoftMode_Text" xml:space = "preserve"> <value> 简洁模式 </value> </data>
<data name = "isRestart" xml:space = "preserve"> <value> 更改此模式需要重新加载设备,是否现在重启软件? </value> </data>
<data name = "FrmWork_btnResetAOI_Text" xml:space = "preserve"> <value> 还原 </value> </data>
<data name = "shortageInfo" xml:space = "preserve"> <value> 缺料信息: </value> </data>
<data name = "shortageInfo" xml:space = "preserve"> <value> 缺料信息: </value> </data>
<data name = "FrmLogin_label3_Text" xml:space = "preserve"> <value> Neo Station </value> </data>
<data name = "FrmBoardInfo_btnMEdit_Text" xml:space = "preserve"> <value> 批量操作 </value> </data>
<data name = "FrmEditMPoint_Text" xml:space = "preserve"> <value> 点位批量操作 </value> </data>
<data name = "FrmEditMPoint_label6_Text" xml:space = "preserve"> <value> 删除左侧列表中的点位 </value> </data>
<data name = "FrmEditMPoint_radioButton1_Text" xml:space = "preserve"> <value> 删除 </value> </data>
<data name = "FrmEditMPoint_rdbPianyi_Text" xml:space = "preserve"> <value> 坐标偏移/旋转 </value> </data>
<data name = "FrmEditMPoint_label3_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_label5_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_checkBox1_Text" xml:space = "preserve"> <value> 自动为位号增加后缀 </value> </data>
<data name = "FrmEditMPoint_label2_Text" xml:space = "preserve"> <value> 列间距: </value> </data>
<data name = "FrmEditMPoint_label12_Text" xml:space = "preserve"> <value> 列: </value> </data>
<data name = "FrmEditMPoint_label11_Text" xml:space = "preserve"> <value> 行间距: </value> </data>
<data name = "FrmEditMPoint_label7_Text" xml:space = "preserve"> <value> 行: </value> </data>
<data name = "FrmEditMPoint_rdbCopy_Text" xml:space = "preserve"> <value> 复制 </value> </data>
<data name = "FrmEditMPoint_label8_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_label122_Text" xml:space = "preserve"> <value> mm </value> </data>
<data name = "FrmEditMPoint_label1_Text" xml:space = "preserve"> <value> ° </value> </data>
<data name = "FrmEditMPoint_label9_Text" xml:space = "preserve"> <value> X轴偏移量→: </value> </data>
<data name = "FrmEditMPoint_label4_Text" xml:space = "preserve"> <value> 旋转角度: </value> </data>
<data name = "FrmEditMPoint_label10_Text" xml:space = "preserve"> <value> Y轴偏移量↓: </value> </data>
<data name = "FrmEditMPoint_焊点列表_Text" xml:space = "preserve"> <value> 列表 </value> </data>
<data name = "FrmEditMPoint_btnClose_Text" xml:space = "preserve"> <value> 返回 </value> </data>
<data name = "FrmEditMPoint_btnSave_Text" xml:space = "preserve"> <value> 保存 </value> </data>
<data name = "NoSaveBack" xml:space = "preserve"> <value> 不保存直接返回? </value> </data>
<data name = "FrmMaintenance_label1_Text" xml:space = "preserve"> <value> Neo Station </value> </data>
<data name = "FrmMaintenance_LblUserName_Text" xml:space = "preserve"> <value> admin/Admin </value> </data>
<data name = "FrmMaintenance_lblVersion_Text" xml:space = "preserve"> <value> V4.1.9152.25101 </value> </data>
<data name = "PWSureCopyPoint" xml:space = "preserve"> <value> 确定复制?目标为{0}行,{1}列,X间距={2}, Y间距={3} </value> </data>
<data name = "FrmEditMPoint_rdbDelete_Text" xml:space = "preserve"> <value> 删除 </value> </data>
</root>
\ No newline at end of file
......@@ -521,6 +521,21 @@ namespace TSA_V
/// </summary>
public static string PWSureUPdateXY = "PWSureUPdateXY";
/// <summary>
///确定以左下角为基准顺时针旋转{0}度?
/// </summary>
public static string PWSureXuanzhuan = "PWSureXuanzhuan";
/// <summary>
/// SuerCopyPoint, "确定复制?目标为{0}行,{1}列,X间距={2}, Y间距={3}"
/// </summary>
public static string PWSureCopyPoint = "PWSureCopyPoint";
/// <summary>
/// 确定删除
/// </summary>
public static string PWSureDeletePoint = "PWSureDeletePoint";
/// <summary>
/// 确认
/// </summary>
public static string Sure = "Sure";
......@@ -898,6 +913,10 @@ namespace TSA_V
internal static readonly string Type_None= "Type_None";
internal static readonly string CreateNew = "CreateNew";
/// <summary>
/// NoSaveBack=不保存直接返回
/// </summary>
internal static readonly string NoSaveBack= "NoSaveBack";
}
}
......@@ -173,6 +173,12 @@
</ItemGroup>
<ItemGroup>
<Compile Include="frmBoard\ExcelReadManager.cs" />
<Compile Include="frmBoard\FrmEditMPoint.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmBoard\FrmEditMPoint.Designer.cs">
<DependentUpon>FrmEditMPoint.cs</DependentUpon>
</Compile>
<Compile Include="frmBoard\FrmBomUpload.cs">
<SubType>Form</SubType>
</Compile>
......@@ -446,6 +452,10 @@
<DependentUpon>FrmBase.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="frmBoard\FrmEditMPoint.resx">
<DependentUpon>FrmEditMPoint.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="frmBoard\FrmBoardInfo.resx">
<DependentUpon>FrmBoardInfo.cs</DependentUpon>
<SubType>Designer</SubType>
......
......@@ -53,6 +53,7 @@
this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn();
this.colorDialog1 = new System.Windows.Forms.ColorDialog();
this.panel1 = new System.Windows.Forms.Panel();
this.btnMEdit = new System.Windows.Forms.Button();
this.linkDis = new System.Windows.Forms.LinkLabel();
this.linkEnable = new System.Windows.Forms.LinkLabel();
this.btnCalibrate = new System.Windows.Forms.Button();
......@@ -79,6 +80,23 @@
this.chbShowName = new System.Windows.Forms.CheckBox();
this.焊点列表 = new System.Windows.Forms.GroupBox();
this.dgvList = new System.Windows.Forms.DataGridView();
this.btnSetOrigin = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel();
this.panBoard = new System.Windows.Forms.Panel();
this.picBoard = new System.Windows.Forms.PictureBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lblAoi = new System.Windows.Forms.Label();
this.lblLineW = new System.Windows.Forms.Label();
this.cmbAOIFile = new System.Windows.Forms.ComboBox();
this.txtCode = new System.Windows.Forms.TextBox();
this.txtLineWidth = new System.Windows.Forms.TextBox();
this.lbllinews = new System.Windows.Forms.Label();
this.txtBoardName = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.btnSave = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.Column_pointNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_PartNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
......@@ -107,23 +125,6 @@
this.Column_Del = new System.Windows.Forms.DataGridViewLinkColumn();
this.Column_Up = new System.Windows.Forms.DataGridViewLinkColumn();
this.Column_Down = new System.Windows.Forms.DataGridViewLinkColumn();
this.btnSetOrigin = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel();
this.panBoard = new System.Windows.Forms.Panel();
this.picBoard = new System.Windows.Forms.PictureBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lblAoi = new System.Windows.Forms.Label();
this.lblLineW = new System.Windows.Forms.Label();
this.cmbAOIFile = new System.Windows.Forms.ComboBox();
this.txtCode = new System.Windows.Forms.TextBox();
this.txtLineWidth = new System.Windows.Forms.TextBox();
this.lbllinews = new System.Windows.Forms.Label();
this.txtBoardName = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.btnSave = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.contextMenuStrip1.SuspendLayout();
this.contextMenuStrip2.SuspendLayout();
this.panel1.SuspendLayout();
......@@ -279,6 +280,7 @@
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.btnMEdit);
this.panel1.Controls.Add(this.linkDis);
this.panel1.Controls.Add(this.linkEnable);
this.panel1.Controls.Add(this.btnCalibrate);
......@@ -301,6 +303,19 @@
this.panel1.Size = new System.Drawing.Size(1344, 701);
this.panel1.TabIndex = 0;
//
// btnMEdit
//
this.btnMEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnMEdit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMEdit.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMEdit.Location = new System.Drawing.Point(355, 639);
this.btnMEdit.Name = "btnMEdit";
this.btnMEdit.Size = new System.Drawing.Size(120, 45);
this.btnMEdit.TabIndex = 297;
this.btnMEdit.Text = "批量操作";
this.btnMEdit.UseVisualStyleBackColor = true;
this.btnMEdit.Click += new System.EventHandler(this.btnMEdit_Click);
//
// linkDis
//
this.linkDis.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
......@@ -345,7 +360,7 @@
this.btnColorChange.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnColorChange.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnColorChange.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnColorChange.Location = new System.Drawing.Point(1086, 644);
this.btnColorChange.Location = new System.Drawing.Point(1086, 639);
this.btnColorChange.Name = "btnColorChange";
this.btnColorChange.Size = new System.Drawing.Size(120, 45);
this.btnColorChange.TabIndex = 293;
......@@ -359,7 +374,7 @@
this.btnOpenFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnOpenFile.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenFile.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenFile.Location = new System.Drawing.Point(1212, 644);
this.btnOpenFile.Location = new System.Drawing.Point(1212, 639);
this.btnOpenFile.Name = "btnOpenFile";
this.btnOpenFile.Size = new System.Drawing.Size(120, 45);
this.btnOpenFile.TabIndex = 260;
......@@ -561,7 +576,7 @@
this.chbNormal.Checked = true;
this.chbNormal.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbNormal.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbNormal.Location = new System.Drawing.Point(654, 652);
this.chbNormal.Location = new System.Drawing.Point(761, 644);
this.chbNormal.Name = "chbNormal";
this.chbNormal.Size = new System.Drawing.Size(87, 21);
this.chbNormal.TabIndex = 281;
......@@ -573,10 +588,10 @@
//
this.lblMousePosition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.lblMousePosition.AutoSize = true;
this.lblMousePosition.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMousePosition.Location = new System.Drawing.Point(931, 659);
this.lblMousePosition.Font = new System.Drawing.Font("微软雅黑", 7.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblMousePosition.Location = new System.Drawing.Point(823, 676);
this.lblMousePosition.Name = "lblMousePosition";
this.lblMousePosition.Size = new System.Drawing.Size(40, 17);
this.lblMousePosition.Size = new System.Drawing.Size(33, 16);
this.lblMousePosition.TabIndex = 287;
this.lblMousePosition.Text = "X坐标";
//
......@@ -587,7 +602,7 @@
this.chbShowName.Checked = true;
this.chbShowName.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbShowName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbShowName.Location = new System.Drawing.Point(795, 652);
this.chbShowName.Location = new System.Drawing.Point(902, 644);
this.chbShowName.Name = "chbShowName";
this.chbShowName.Size = new System.Drawing.Size(75, 21);
this.chbShowName.TabIndex = 280;
......@@ -663,6 +678,196 @@
this.dgvList.DragDrop += new System.Windows.Forms.DragEventHandler(this.dgvList_DragDrop);
this.dgvList.DragEnter += new System.Windows.Forms.DragEventHandler(this.dgvList_DragEnter);
//
// btnSetOrigin
//
this.btnSetOrigin.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSetOrigin.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSetOrigin.Location = new System.Drawing.Point(8, 546);
this.btnSetOrigin.Name = "btnSetOrigin";
this.btnSetOrigin.Size = new System.Drawing.Size(120, 31);
this.btnSetOrigin.TabIndex = 278;
this.btnSetOrigin.Text = "重置基准点";
this.btnSetOrigin.UseVisualStyleBackColor = true;
this.btnSetOrigin.Visible = false;
this.btnSetOrigin.Click += new System.EventHandler(this.btnSetBasePoint_Click);
//
// panel3
//
this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel3.Controls.Add(this.panBoard);
this.panel3.Location = new System.Drawing.Point(646, 123);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(688, 510);
this.panel3.TabIndex = 277;
//
// panBoard
//
this.panBoard.AutoScroll = true;
this.panBoard.Controls.Add(this.picBoard);
this.panBoard.Dock = System.Windows.Forms.DockStyle.Fill;
this.panBoard.Location = new System.Drawing.Point(0, 0);
this.panBoard.Name = "panBoard";
this.panBoard.Size = new System.Drawing.Size(688, 510);
this.panBoard.TabIndex = 261;
this.panBoard.Paint += new System.Windows.Forms.PaintEventHandler(this.panBoard_Paint);
//
// picBoard
//
this.picBoard.ContextMenuStrip = this.contextMenuStrip1;
this.picBoard.Cursor = System.Windows.Forms.Cursors.Cross;
this.picBoard.Location = new System.Drawing.Point(0, 0);
this.picBoard.Name = "picBoard";
this.picBoard.Size = new System.Drawing.Size(435, 258);
this.picBoard.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.picBoard.TabIndex = 259;
this.picBoard.TabStop = false;
this.picBoard.MouseDown += new System.Windows.Forms.MouseEventHandler(this.picBoard_MouseDown);
this.picBoard.MouseMove += new System.Windows.Forms.MouseEventHandler(this.picBoard_MouseMove);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.lblAoi);
this.groupBox1.Controls.Add(this.lblLineW);
this.groupBox1.Controls.Add(this.cmbAOIFile);
this.groupBox1.Controls.Add(this.txtCode);
this.groupBox1.Controls.Add(this.txtLineWidth);
this.groupBox1.Controls.Add(this.lbllinews);
this.groupBox1.Controls.Add(this.txtBoardName);
this.groupBox1.Controls.Add(this.label14);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(625, 99);
this.groupBox1.TabIndex = 20;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "程序基本信息";
//
// lblAoi
//
this.lblAoi.Location = new System.Drawing.Point(9, 60);
this.lblAoi.Name = "lblAoi";
this.lblAoi.Size = new System.Drawing.Size(104, 22);
this.lblAoi.TabIndex = 283;
this.lblAoi.Text = "AOI程序:";
this.lblAoi.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblLineW
//
this.lblLineW.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblLineW.Location = new System.Drawing.Point(367, 63);
this.lblLineW.Name = "lblLineW";
this.lblLineW.Size = new System.Drawing.Size(112, 20);
this.lblLineW.TabIndex = 297;
this.lblLineW.Text = "线体宽度:";
this.lblLineW.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// cmbAOIFile
//
this.cmbAOIFile.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbAOIFile.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cmbAOIFile.FormattingEnabled = true;
this.cmbAOIFile.Location = new System.Drawing.Point(117, 60);
this.cmbAOIFile.Name = "cmbAOIFile";
this.cmbAOIFile.Size = new System.Drawing.Size(230, 28);
this.cmbAOIFile.TabIndex = 282;
//
// txtCode
//
this.txtCode.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtCode.Location = new System.Drawing.Point(374, 23);
this.txtCode.MaxLength = 40;
this.txtCode.Name = "txtCode";
this.txtCode.Size = new System.Drawing.Size(180, 29);
this.txtCode.TabIndex = 10;
//
// txtLineWidth
//
this.txtLineWidth.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtLineWidth.Location = new System.Drawing.Point(483, 59);
this.txtLineWidth.MaxLength = 8;
this.txtLineWidth.Name = "txtLineWidth";
this.txtLineWidth.Size = new System.Drawing.Size(70, 29);
this.txtLineWidth.TabIndex = 295;
//
// lbllinews
//
this.lbllinews.AutoSize = true;
this.lbllinews.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbllinews.Location = new System.Drawing.Point(556, 65);
this.lbllinews.Name = "lbllinews";
this.lbllinews.Size = new System.Drawing.Size(30, 17);
this.lbllinews.TabIndex = 296;
this.lbllinews.Text = "mm";
//
// txtBoardName
//
this.txtBoardName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBoardName.Location = new System.Drawing.Point(117, 23);
this.txtBoardName.MaxLength = 20;
this.txtBoardName.Name = "txtBoardName";
this.txtBoardName.Size = new System.Drawing.Size(180, 29);
this.txtBoardName.TabIndex = 2;
//
// label14
//
this.label14.Location = new System.Drawing.Point(301, 26);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(69, 22);
this.label14.TabIndex = 9;
this.label14.Text = "条码:";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label2
//
this.label2.Location = new System.Drawing.Point(35, 29);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(78, 17);
this.label2.TabIndex = 1;
this.label2.Text = "名称";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(605, 639);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(120, 45);
this.button1.TabIndex = 41;
this.button1.Text = "返回";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// btnSave
//
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSave.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSave.Location = new System.Drawing.Point(480, 639);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(120, 45);
this.btnSave.TabIndex = 40;
this.btnSave.Text = "保存";
this.btnSave.UseVisualStyleBackColor = true;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// panel2
//
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel2.BackColor = System.Drawing.Color.Black;
this.panel2.BackgroundImage = global::TSA_V.Properties.Resources.axisbg;
this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.panel2.Location = new System.Drawing.Point(631, 106);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(703, 525);
this.panel2.TabIndex = 292;
//
// Column_pointNum
//
this.Column_pointNum.DataPropertyName = "pointNum";
......@@ -675,10 +880,11 @@
// Column_PartNum
//
this.Column_PartNum.DataPropertyName = "partNum";
this.Column_PartNum.FillWeight = 180F;
this.Column_PartNum.HeaderText = "位号";
this.Column_PartNum.Name = "Column_PartNum";
this.Column_PartNum.ReadOnly = true;
this.Column_PartNum.Width = 80;
this.Column_PartNum.Width = 120;
//
// Column_Name
//
......@@ -693,7 +899,7 @@
this.Column_X.HeaderText = "X";
this.Column_X.Name = "Column_X";
this.Column_X.ReadOnly = true;
this.Column_X.Width = 80;
this.Column_X.Width = 60;
//
// Column_Y
//
......@@ -701,7 +907,7 @@
this.Column_Y.HeaderText = "Y";
this.Column_Y.Name = "Column_Y";
this.Column_Y.ReadOnly = true;
this.Column_Y.Width = 80;
this.Column_Y.Width = 60;
//
// Column_NodeX
//
......@@ -710,16 +916,17 @@
this.Column_NodeX.Name = "Column_NodeX";
this.Column_NodeX.ReadOnly = true;
this.Column_NodeX.Visible = false;
this.Column_NodeX.Width = 70;
this.Column_NodeX.Width = 60;
//
// Column_NodeY
//
this.Column_NodeY.DataPropertyName = "NodePositionY";
this.Column_NodeY.FillWeight = 80F;
this.Column_NodeY.HeaderText = "Y";
this.Column_NodeY.Name = "Column_NodeY";
this.Column_NodeY.ReadOnly = true;
this.Column_NodeY.Visible = false;
this.Column_NodeY.Width = 70;
this.Column_NodeY.Width = 60;
//
// Column_positionNum
//
......@@ -906,196 +1113,6 @@
this.Column_Down.UseColumnTextForLinkValue = true;
this.Column_Down.Width = 30;
//
// btnSetOrigin
//
this.btnSetOrigin.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSetOrigin.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSetOrigin.Location = new System.Drawing.Point(8, 546);
this.btnSetOrigin.Name = "btnSetOrigin";
this.btnSetOrigin.Size = new System.Drawing.Size(120, 31);
this.btnSetOrigin.TabIndex = 278;
this.btnSetOrigin.Text = "重置基准点";
this.btnSetOrigin.UseVisualStyleBackColor = true;
this.btnSetOrigin.Visible = false;
this.btnSetOrigin.Click += new System.EventHandler(this.btnSetBasePoint_Click);
//
// panel3
//
this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel3.Controls.Add(this.panBoard);
this.panel3.Location = new System.Drawing.Point(646, 123);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(688, 510);
this.panel3.TabIndex = 277;
//
// panBoard
//
this.panBoard.AutoScroll = true;
this.panBoard.Controls.Add(this.picBoard);
this.panBoard.Dock = System.Windows.Forms.DockStyle.Fill;
this.panBoard.Location = new System.Drawing.Point(0, 0);
this.panBoard.Name = "panBoard";
this.panBoard.Size = new System.Drawing.Size(688, 510);
this.panBoard.TabIndex = 261;
this.panBoard.Paint += new System.Windows.Forms.PaintEventHandler(this.panBoard_Paint);
//
// picBoard
//
this.picBoard.ContextMenuStrip = this.contextMenuStrip1;
this.picBoard.Cursor = System.Windows.Forms.Cursors.Cross;
this.picBoard.Location = new System.Drawing.Point(0, 0);
this.picBoard.Name = "picBoard";
this.picBoard.Size = new System.Drawing.Size(435, 258);
this.picBoard.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.picBoard.TabIndex = 259;
this.picBoard.TabStop = false;
this.picBoard.MouseDown += new System.Windows.Forms.MouseEventHandler(this.picBoard_MouseDown);
this.picBoard.MouseMove += new System.Windows.Forms.MouseEventHandler(this.picBoard_MouseMove);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.lblAoi);
this.groupBox1.Controls.Add(this.lblLineW);
this.groupBox1.Controls.Add(this.cmbAOIFile);
this.groupBox1.Controls.Add(this.txtCode);
this.groupBox1.Controls.Add(this.txtLineWidth);
this.groupBox1.Controls.Add(this.lbllinews);
this.groupBox1.Controls.Add(this.txtBoardName);
this.groupBox1.Controls.Add(this.label14);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(3, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(625, 99);
this.groupBox1.TabIndex = 20;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "程序基本信息";
//
// lblAoi
//
this.lblAoi.Location = new System.Drawing.Point(9, 60);
this.lblAoi.Name = "lblAoi";
this.lblAoi.Size = new System.Drawing.Size(104, 22);
this.lblAoi.TabIndex = 283;
this.lblAoi.Text = "AOI程序:";
this.lblAoi.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblLineW
//
this.lblLineW.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblLineW.Location = new System.Drawing.Point(367, 63);
this.lblLineW.Name = "lblLineW";
this.lblLineW.Size = new System.Drawing.Size(112, 20);
this.lblLineW.TabIndex = 297;
this.lblLineW.Text = "线体宽度:";
this.lblLineW.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// cmbAOIFile
//
this.cmbAOIFile.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbAOIFile.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cmbAOIFile.FormattingEnabled = true;
this.cmbAOIFile.Location = new System.Drawing.Point(117, 60);
this.cmbAOIFile.Name = "cmbAOIFile";
this.cmbAOIFile.Size = new System.Drawing.Size(230, 28);
this.cmbAOIFile.TabIndex = 282;
//
// txtCode
//
this.txtCode.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtCode.Location = new System.Drawing.Point(374, 23);
this.txtCode.MaxLength = 40;
this.txtCode.Name = "txtCode";
this.txtCode.Size = new System.Drawing.Size(180, 29);
this.txtCode.TabIndex = 10;
//
// txtLineWidth
//
this.txtLineWidth.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtLineWidth.Location = new System.Drawing.Point(483, 59);
this.txtLineWidth.MaxLength = 8;
this.txtLineWidth.Name = "txtLineWidth";
this.txtLineWidth.Size = new System.Drawing.Size(70, 29);
this.txtLineWidth.TabIndex = 295;
//
// lbllinews
//
this.lbllinews.AutoSize = true;
this.lbllinews.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbllinews.Location = new System.Drawing.Point(556, 65);
this.lbllinews.Name = "lbllinews";
this.lbllinews.Size = new System.Drawing.Size(30, 17);
this.lbllinews.TabIndex = 296;
this.lbllinews.Text = "mm";
//
// txtBoardName
//
this.txtBoardName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBoardName.Location = new System.Drawing.Point(117, 23);
this.txtBoardName.MaxLength = 20;
this.txtBoardName.Name = "txtBoardName";
this.txtBoardName.Size = new System.Drawing.Size(180, 29);
this.txtBoardName.TabIndex = 2;
//
// label14
//
this.label14.Location = new System.Drawing.Point(301, 26);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(69, 22);
this.label14.TabIndex = 9;
this.label14.Text = "条码:";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label2
//
this.label2.Location = new System.Drawing.Point(35, 29);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(78, 17);
this.label2.TabIndex = 1;
this.label2.Text = "名称";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(508, 639);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(120, 45);
this.button1.TabIndex = 41;
this.button1.Text = "返回";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// btnSave
//
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSave.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSave.Location = new System.Drawing.Point(386, 639);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(120, 45);
this.btnSave.TabIndex = 40;
this.btnSave.Text = "保存";
this.btnSave.UseVisualStyleBackColor = true;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// panel2
//
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel2.BackColor = System.Drawing.Color.Black;
this.panel2.BackgroundImage = global::TSA_V.Properties.Resources.axisbg;
this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.panel2.Location = new System.Drawing.Point(631, 106);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(703, 525);
this.panel2.TabIndex = 292;
//
// FrmBoardInfo
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
......@@ -1192,6 +1209,9 @@
private System.Windows.Forms.Button btnColorChange;
private System.Windows.Forms.ColorDialog colorDialog1;
private System.Windows.Forms.Button btnCalibrate;
private System.Windows.Forms.LinkLabel linkDis;
private System.Windows.Forms.LinkLabel linkEnable;
private System.Windows.Forms.Button btnMEdit;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_pointNum;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_PartNum;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_Name;
......@@ -1220,7 +1240,5 @@
private System.Windows.Forms.DataGridViewLinkColumn Column_Del;
private System.Windows.Forms.DataGridViewLinkColumn Column_Up;
private System.Windows.Forms.DataGridViewLinkColumn Column_Down;
private System.Windows.Forms.LinkLabel linkDis;
private System.Windows.Forms.LinkLabel linkEnable;
}
}
\ No newline at end of file

using AccAOI;
using log4net;
using NPOI.Util;
using Org.BouncyCastle.Asn1.Tsp;
using System;
using System.Collections.Generic;
using System.Drawing;
......@@ -192,6 +190,7 @@ namespace TSA_V
}
dgvList.Columns[i].Selected = false;
}
btnMEdit.Visible = Setting_NInit.Work_ShowOperateBtn;
}
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
......@@ -673,6 +672,7 @@ namespace TSA_V
BoardManager.Update(board);
}
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.SaveOk, "保存成功!"));
DialogResult = DialogResult.OK;
Close();
}
/// <summary>
......@@ -745,7 +745,11 @@ namespace TSA_V
}
private void button1_Click(object sender, EventArgs e)
{
Close();
DialogResult result = MessageBox.Show(ResourceCulture.GetString(ResourceCulture.NoSaveBack, "不保存直接返回?"), ResourceCulture.GetString("提示"), MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if (result == DialogResult.Yes)
{
Close();
}
}
private void Close()
{
......@@ -1657,6 +1661,118 @@ namespace TSA_V
}
}
private void btnMEdit_Click(object sender, EventArgs e)
{
if (dgvList.SelectedRows != null && dgvList.SelectedRows.Count > 0)
{
List<SMTPointInfo> selectPlist = new List<SMTPointInfo>();
try
{
List<int> indexList = new List<int>();
List<DataGridViewRow> rows = new List<DataGridViewRow>();
foreach (DataGridViewRow row in dgvList.SelectedRows)
{
rows.Add(row);
//SMTPointInfo point = getRowPointInfo(row);
//selectPlist.Add(point);
//indexList.Add(row.Index);
}
rows = rows.OrderBy(row => row.Index).ToList();
foreach(DataGridViewRow row in rows)
{
SMTPointInfo point = getRowPointInfo(row);
selectPlist.Add(point);
indexList.Add(row.Index);
}
FrmEditMPoint frmEditMPoint = new FrmEditMPoint();
frmEditMPoint.SetBoard(updateBoardInfo, selectPlist);
DialogResult result = frmEditMPoint.ShowDialog();
List<SMTPointInfo> resultList = frmEditMPoint.resultPointList;
if (result.Equals(DialogResult.OK))
{
//刷新页面
if (frmEditMPoint.EditType == 1 )
{
if (resultList.Count == indexList.Count)
{
for (int i = 0; i < resultList.Count; i++)
{
int index = indexList[i];
SMTPointInfo point = resultList[i];
setPointInfo(dgvList.Rows[index], point);
}
}
foreach (DataGridViewRow row in dgvList.SelectedRows)
{
SMTPointInfo point = getRowPointInfo(row);
selectPlist.Add(point);
}
//偏移
loadPictureBoxSize();
}
else if (frmEditMPoint.EditType == 2)
{
List<SMTPointInfo> selectPoints = new List<SMTPointInfo>(frmEditMPoint.selectPoints);
//更改原有点位
if(selectPoints.Count == indexList.Count)
{
for (int i = 0; i < selectPoints.Count; i++)
{
int index = indexList[i];
SMTPointInfo point = selectPoints[i];
setPointInfo(dgvList.Rows[index], point);
}
}
foreach (DataGridViewRow row in dgvList.SelectedRows)
{
SMTPointInfo point = getRowPointInfo(row);
selectPlist.Add(point);
}
//增加新点位
foreach(SMTPointInfo newPoint in resultList)
{
dgvList.Rows.Add(setPointInfo(null, newPoint));
}
//偏移
loadPictureBoxSize();
}
}
else if (frmEditMPoint.EditType == 3)
{
//删除 直接从列表删除
indexList.Sort();
for(int i=indexList.Count-1; i>=0; i--)
{
dgvList.Rows.RemoveAt(indexList[i]);
}
loadPictureBoxSize();
}
}
catch (Exception ex)
{
LogUtil.error(ex.ToString());
}
finally
{
}
}
}
private bool Fwpi_ShowPointEvent(SMTPointInfo smtInfo, Color color)
{
try
......@@ -1694,6 +1810,20 @@ namespace TSA_V
}
return true;
}
protected override void WndProc(ref Message m)
{
//Console.WriteLine(m.Msg);
const int WM_SYSCOMMAND = 0x0112;
const int SC_CLOSE = 0xF060;
if (m.Msg == WM_SYSCOMMAND && (int)m.WParam == SC_CLOSE)
{
DialogResult result = MessageBox.Show(ResourceCulture.GetString(ResourceCulture.NoSaveBack, "不保存直接返回?"), ResourceCulture.GetString("提示"), MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if (result != DialogResult.Yes)
{
return;
}
}
base.WndProc(ref m);
}
}
}
namespace TSA_V
{
partial class FrmEditMPoint
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmEditMPoint));
this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn();
this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn();
this.panel1 = new System.Windows.Forms.Panel();
this.groupDelete = new System.Windows.Forms.GroupBox();
this.label6 = new System.Windows.Forms.Label();
this.rdbDelete = new System.Windows.Forms.RadioButton();
this.rdbPianyi = new System.Windows.Forms.RadioButton();
this.groupCopy = new System.Windows.Forms.GroupBox();
this.label3 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.txtColS = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.txtCol = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.txtRowS = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.txtRow = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.rdbCopy = new System.Windows.Forms.RadioButton();
this.groupPianYi = new System.Windows.Forms.GroupBox();
this.label8 = new System.Windows.Forms.Label();
this.label122 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.txtAngle = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.txtXUpdate = new System.Windows.Forms.TextBox();
this.txtYUpdate = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.焊点列表 = new System.Windows.Forms.GroupBox();
this.dgvList = new System.Windows.Forms.DataGridView();
this.Column_pointNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_PartNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_X = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_Y = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_NodeX = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_NodeY = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_positionNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_NeedSoldering = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.Column_WeldTemp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_WeldTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_NeedCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.Column_CheckOK = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.Column_PointType = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_PointSizeX = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_PointSizeY = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_PenWidth = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_ShowText = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column_disable = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.Column_Notes = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_IsEdit = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.col_Polarities = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnClose = new System.Windows.Forms.Button();
this.btnSave = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.groupDelete.SuspendLayout();
this.groupCopy.SuspendLayout();
this.groupPianYi.SuspendLayout();
this.焊点列表.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvList)).BeginInit();
this.SuspendLayout();
//
// dataGridViewImageColumn1
//
this.dataGridViewImageColumn1.HeaderText = "上升";
this.dataGridViewImageColumn1.Image = ((System.Drawing.Image)(resources.GetObject("dataGridViewImageColumn1.Image")));
this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1";
this.dataGridViewImageColumn1.Visible = false;
this.dataGridViewImageColumn1.Width = 50;
//
// dataGridViewImageColumn2
//
this.dataGridViewImageColumn2.HeaderText = "下降";
this.dataGridViewImageColumn2.Image = ((System.Drawing.Image)(resources.GetObject("dataGridViewImageColumn2.Image")));
this.dataGridViewImageColumn2.Name = "dataGridViewImageColumn2";
this.dataGridViewImageColumn2.Visible = false;
this.dataGridViewImageColumn2.Width = 50;
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.groupDelete);
this.panel1.Controls.Add(this.rdbDelete);
this.panel1.Controls.Add(this.rdbPianyi);
this.panel1.Controls.Add(this.groupCopy);
this.panel1.Controls.Add(this.rdbCopy);
this.panel1.Controls.Add(this.groupPianYi);
this.panel1.Controls.Add(this.焊点列表);
this.panel1.Controls.Add(this.btnClose);
this.panel1.Controls.Add(this.btnSave);
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(847, 606);
this.panel1.TabIndex = 0;
//
// groupDelete
//
this.groupDelete.Controls.Add(this.label6);
this.groupDelete.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupDelete.Location = new System.Drawing.Point(417, 452);
this.groupDelete.Name = "groupDelete";
this.groupDelete.Size = new System.Drawing.Size(413, 55);
this.groupDelete.TabIndex = 294;
this.groupDelete.TabStop = false;
//
// label6
//
this.label6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.ForeColor = System.Drawing.Color.Red;
this.label6.Location = new System.Drawing.Point(26, 19);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(357, 17);
this.label6.TabIndex = 304;
this.label6.Text = "删除左侧列表中的点位";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// rdbDelete
//
this.rdbDelete.AutoSize = true;
this.rdbDelete.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.rdbDelete.Location = new System.Drawing.Point(420, 429);
this.rdbDelete.Name = "rdbDelete";
this.rdbDelete.Size = new System.Drawing.Size(50, 21);
this.rdbDelete.TabIndex = 293;
this.rdbDelete.Text = "删除";
this.rdbDelete.UseVisualStyleBackColor = true;
this.rdbDelete.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
//
// rdbPianyi
//
this.rdbPianyi.AutoSize = true;
this.rdbPianyi.Checked = true;
this.rdbPianyi.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.rdbPianyi.Location = new System.Drawing.Point(420, 12);
this.rdbPianyi.Name = "rdbPianyi";
this.rdbPianyi.Size = new System.Drawing.Size(103, 21);
this.rdbPianyi.TabIndex = 287;
this.rdbPianyi.TabStop = true;
this.rdbPianyi.Text = "坐标偏移/旋转";
this.rdbPianyi.UseVisualStyleBackColor = true;
this.rdbPianyi.CheckedChanged += new System.EventHandler(this.rdbPianyi_CheckedChanged);
//
// groupCopy
//
this.groupCopy.Controls.Add(this.label3);
this.groupCopy.Controls.Add(this.label5);
this.groupCopy.Controls.Add(this.checkBox1);
this.groupCopy.Controls.Add(this.txtColS);
this.groupCopy.Controls.Add(this.label2);
this.groupCopy.Controls.Add(this.txtCol);
this.groupCopy.Controls.Add(this.label12);
this.groupCopy.Controls.Add(this.txtRowS);
this.groupCopy.Controls.Add(this.label11);
this.groupCopy.Controls.Add(this.txtRow);
this.groupCopy.Controls.Add(this.label7);
this.groupCopy.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupCopy.Location = new System.Drawing.Point(420, 210);
this.groupCopy.Name = "groupCopy";
this.groupCopy.Size = new System.Drawing.Size(410, 217);
this.groupCopy.TabIndex = 292;
this.groupCopy.TabStop = false;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(241, 140);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(30, 17);
this.label3.TabIndex = 303;
this.label3.Text = "mm";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.Location = new System.Drawing.Point(241, 102);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(30, 17);
this.label5.TabIndex = 302;
this.label5.Text = "mm";
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Checked = true;
this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBox1.Location = new System.Drawing.Point(119, 181);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(135, 21);
this.checkBox1.TabIndex = 301;
this.checkBox1.Text = "自动为位号增加后缀";
this.checkBox1.UseVisualStyleBackColor = true;
//
// txtColS
//
this.txtColS.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtColS.Location = new System.Drawing.Point(144, 136);
this.txtColS.MaxLength = 12;
this.txtColS.Name = "txtColS";
this.txtColS.Size = new System.Drawing.Size(89, 23);
this.txtColS.TabIndex = 300;
this.txtColS.Text = "1";
//
// label2
//
this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(55, 139);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(80, 17);
this.label2.TabIndex = 299;
this.label2.Text = "列间距:";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtCol
//
this.txtCol.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtCol.Location = new System.Drawing.Point(144, 60);
this.txtCol.MaxLength = 12;
this.txtCol.Name = "txtCol";
this.txtCol.Size = new System.Drawing.Size(89, 23);
this.txtCol.TabIndex = 298;
this.txtCol.Text = "1";
//
// label12
//
this.label12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label12.Location = new System.Drawing.Point(55, 63);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(80, 17);
this.label12.TabIndex = 297;
this.label12.Text = "列:";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtRowS
//
this.txtRowS.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtRowS.Location = new System.Drawing.Point(144, 98);
this.txtRowS.MaxLength = 12;
this.txtRowS.Name = "txtRowS";
this.txtRowS.Size = new System.Drawing.Size(89, 23);
this.txtRowS.TabIndex = 296;
this.txtRowS.Text = "1";
//
// label11
//
this.label11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label11.Location = new System.Drawing.Point(55, 101);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(80, 17);
this.label11.TabIndex = 295;
this.label11.Text = "行间距:";
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtRow
//
this.txtRow.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtRow.Location = new System.Drawing.Point(144, 22);
this.txtRow.MaxLength = 12;
this.txtRow.Name = "txtRow";
this.txtRow.Size = new System.Drawing.Size(89, 23);
this.txtRow.TabIndex = 294;
this.txtRow.Text = "1";
//
// label7
//
this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(55, 25);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(80, 17);
this.label7.TabIndex = 293;
this.label7.Text = "行:";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// rdbCopy
//
this.rdbCopy.AutoSize = true;
this.rdbCopy.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.rdbCopy.Location = new System.Drawing.Point(420, 187);
this.rdbCopy.Name = "rdbCopy";
this.rdbCopy.Size = new System.Drawing.Size(50, 21);
this.rdbCopy.TabIndex = 287;
this.rdbCopy.Text = "复制";
this.rdbCopy.UseVisualStyleBackColor = true;
this.rdbCopy.CheckedChanged += new System.EventHandler(this.rdbCopy_CheckedChanged);
//
// groupPianYi
//
this.groupPianYi.Controls.Add(this.label8);
this.groupPianYi.Controls.Add(this.label122);
this.groupPianYi.Controls.Add(this.label1);
this.groupPianYi.Controls.Add(this.label9);
this.groupPianYi.Controls.Add(this.txtAngle);
this.groupPianYi.Controls.Add(this.label4);
this.groupPianYi.Controls.Add(this.txtXUpdate);
this.groupPianYi.Controls.Add(this.txtYUpdate);
this.groupPianYi.Controls.Add(this.label10);
this.groupPianYi.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupPianYi.Location = new System.Drawing.Point(420, 35);
this.groupPianYi.Name = "groupPianYi";
this.groupPianYi.Size = new System.Drawing.Size(410, 150);
this.groupPianYi.TabIndex = 290;
this.groupPianYi.TabStop = false;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.Location = new System.Drawing.Point(241, 68);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(30, 17);
this.label8.TabIndex = 286;
this.label8.Text = "mm";
//
// label122
//
this.label122.AutoSize = true;
this.label122.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label122.Location = new System.Drawing.Point(241, 30);
this.label122.Name = "label122";
this.label122.Size = new System.Drawing.Size(30, 17);
this.label122.TabIndex = 285;
this.label122.Text = "mm";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(241, 106);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(13, 17);
this.label1.TabIndex = 286;
this.label1.Text = "°";
//
// label9
//
this.label9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(9, 30);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(129, 17);
this.label9.TabIndex = 280;
this.label9.Text = "X轴偏移量→:";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtAngle
//
this.txtAngle.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtAngle.Location = new System.Drawing.Point(144, 103);
this.txtAngle.MaxLength = 12;
this.txtAngle.Name = "txtAngle";
this.txtAngle.Size = new System.Drawing.Size(89, 23);
this.txtAngle.TabIndex = 283;
this.txtAngle.Text = "0";
//
// label4
//
this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.Location = new System.Drawing.Point(9, 106);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(128, 17);
this.label4.TabIndex = 282;
this.label4.Text = "旋转角度:";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// txtXUpdate
//
this.txtXUpdate.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtXUpdate.Location = new System.Drawing.Point(144, 27);
this.txtXUpdate.MaxLength = 12;
this.txtXUpdate.Name = "txtXUpdate";
this.txtXUpdate.Size = new System.Drawing.Size(89, 23);
this.txtXUpdate.TabIndex = 281;
this.txtXUpdate.Text = "0";
//
// txtYUpdate
//
this.txtYUpdate.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtYUpdate.Location = new System.Drawing.Point(144, 65);
this.txtYUpdate.MaxLength = 12;
this.txtYUpdate.Name = "txtYUpdate";
this.txtYUpdate.Size = new System.Drawing.Size(89, 23);
this.txtYUpdate.TabIndex = 283;
this.txtYUpdate.Text = "0";
//
// label10
//
this.label10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.Location = new System.Drawing.Point(9, 68);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(128, 17);
this.label10.TabIndex = 282;
this.label10.Text = "Y轴偏移量↓:";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// 焊点列表
//
this.焊点列表.Controls.Add(this.dgvList);
this.焊点列表.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.焊点列表.Location = new System.Drawing.Point(3, 3);
this.焊点列表.Name = "焊点列表";
this.焊点列表.Size = new System.Drawing.Size(407, 507);
this.焊点列表.TabIndex = 286;
this.焊点列表.TabStop = false;
this.焊点列表.Text = "列表";
//
// dgvList
//
this.dgvList.AllowDrop = true;
this.dgvList.AllowUserToAddRows = false;
this.dgvList.AllowUserToDeleteRows = false;
this.dgvList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dgvList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column_pointNum,
this.Column_PartNum,
this.Column_Name,
this.Column_X,
this.Column_Y,
this.Column_NodeX,
this.Column_NodeY,
this.Column_positionNum,
this.Column_NeedSoldering,
this.Column_WeldTemp,
this.Column_WeldTime,
this.Column_NeedCheck,
this.Column_CheckOK,
this.Column_PointType,
this.Column_PointSizeX,
this.Column_PointSizeY,
this.Column_PenWidth,
this.Column_ShowText,
this.Column_disable,
this.Column_Notes,
this.col_IsEdit,
this.col_Polarities});
this.dgvList.Location = new System.Drawing.Point(2, 20);
this.dgvList.Name = "dgvList";
this.dgvList.RowHeadersWidth = 30;
this.dgvList.RowTemplate.Height = 23;
this.dgvList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvList.Size = new System.Drawing.Size(399, 481);
this.dgvList.TabIndex = 31;
this.dgvList.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
this.dgvList.CellMouseMove += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvList_CellMouseMove);
this.dgvList.Scroll += new System.Windows.Forms.ScrollEventHandler(this.dgvList_Scroll);
this.dgvList.DragDrop += new System.Windows.Forms.DragEventHandler(this.dgvList_DragDrop);
this.dgvList.DragEnter += new System.Windows.Forms.DragEventHandler(this.dgvList_DragEnter);
//
// Column_pointNum
//
this.Column_pointNum.DataPropertyName = "pointNum";
this.Column_pointNum.HeaderText = "Id";
this.Column_pointNum.Name = "Column_pointNum";
this.Column_pointNum.ReadOnly = true;
this.Column_pointNum.Visible = false;
this.Column_pointNum.Width = 55;
//
// Column_PartNum
//
this.Column_PartNum.DataPropertyName = "partNum";
this.Column_PartNum.HeaderText = "位号";
this.Column_PartNum.Name = "Column_PartNum";
this.Column_PartNum.ReadOnly = true;
this.Column_PartNum.Width = 80;
//
// Column_Name
//
this.Column_Name.DataPropertyName = "pointName";
this.Column_Name.HeaderText = "物料编码";
this.Column_Name.Name = "Column_Name";
this.Column_Name.ReadOnly = true;
//
// Column_X
//
this.Column_X.DataPropertyName = "PositionX";
this.Column_X.HeaderText = "X";
this.Column_X.Name = "Column_X";
this.Column_X.ReadOnly = true;
this.Column_X.Width = 80;
//
// Column_Y
//
this.Column_Y.DataPropertyName = "PositionY";
this.Column_Y.HeaderText = "Y";
this.Column_Y.Name = "Column_Y";
this.Column_Y.ReadOnly = true;
this.Column_Y.Width = 80;
//
// Column_NodeX
//
this.Column_NodeX.DataPropertyName = "NodePositionX";
this.Column_NodeX.HeaderText = "X";
this.Column_NodeX.Name = "Column_NodeX";
this.Column_NodeX.ReadOnly = true;
this.Column_NodeX.Visible = false;
this.Column_NodeX.Width = 70;
//
// Column_NodeY
//
this.Column_NodeY.DataPropertyName = "NodePositionY";
this.Column_NodeY.HeaderText = "Y";
this.Column_NodeY.Name = "Column_NodeY";
this.Column_NodeY.ReadOnly = true;
this.Column_NodeY.Visible = false;
this.Column_NodeY.Width = 70;
//
// Column_positionNum
//
this.Column_positionNum.DataPropertyName = "Column_positionNum";
this.Column_positionNum.HeaderText = "料盘位置";
this.Column_positionNum.Name = "Column_positionNum";
this.Column_positionNum.ReadOnly = true;
this.Column_positionNum.Visible = false;
this.Column_positionNum.Width = 80;
//
// Column_NeedSoldering
//
this.Column_NeedSoldering.DataPropertyName = "NeedSoldering";
this.Column_NeedSoldering.HeaderText = "需焊接";
this.Column_NeedSoldering.Name = "Column_NeedSoldering";
this.Column_NeedSoldering.ReadOnly = true;
this.Column_NeedSoldering.Visible = false;
this.Column_NeedSoldering.Width = 70;
//
// Column_WeldTemp
//
this.Column_WeldTemp.DataPropertyName = "WeldTemp";
this.Column_WeldTemp.HeaderText = "焊接温度";
this.Column_WeldTemp.MaxInputLength = 10;
this.Column_WeldTemp.Name = "Column_WeldTemp";
this.Column_WeldTemp.ReadOnly = true;
this.Column_WeldTemp.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column_WeldTemp.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column_WeldTemp.Visible = false;
this.Column_WeldTemp.Width = 80;
//
// Column_WeldTime
//
this.Column_WeldTime.DataPropertyName = "WeldTime";
this.Column_WeldTime.HeaderText = "焊接时间";
this.Column_WeldTime.MaxInputLength = 10;
this.Column_WeldTime.Name = "Column_WeldTime";
this.Column_WeldTime.ReadOnly = true;
this.Column_WeldTime.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column_WeldTime.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column_WeldTime.Visible = false;
this.Column_WeldTime.Width = 80;
//
// Column_NeedCheck
//
this.Column_NeedCheck.DataPropertyName = "NeedCheck";
this.Column_NeedCheck.HeaderText = "需检测";
this.Column_NeedCheck.Name = "Column_NeedCheck";
this.Column_NeedCheck.ReadOnly = true;
this.Column_NeedCheck.Visible = false;
this.Column_NeedCheck.Width = 55;
//
// Column_CheckOK
//
this.Column_CheckOK.HeaderText = "校准点";
this.Column_CheckOK.Name = "Column_CheckOK";
this.Column_CheckOK.ReadOnly = true;
this.Column_CheckOK.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.Column_CheckOK.Visible = false;
this.Column_CheckOK.Width = 70;
//
// Column_PointType
//
this.Column_PointType.HeaderText = "点类型";
this.Column_PointType.Name = "Column_PointType";
this.Column_PointType.ReadOnly = true;
this.Column_PointType.Visible = false;
//
// Column_PointSizeX
//
this.Column_PointSizeX.HeaderText = "横向点大小";
this.Column_PointSizeX.Name = "Column_PointSizeX";
this.Column_PointSizeX.ReadOnly = true;
this.Column_PointSizeX.Visible = false;
//
// Column_PointSizeY
//
this.Column_PointSizeY.HeaderText = "纵向点大小";
this.Column_PointSizeY.Name = "Column_PointSizeY";
this.Column_PointSizeY.ReadOnly = true;
this.Column_PointSizeY.Visible = false;
//
// Column_PenWidth
//
this.Column_PenWidth.HeaderText = "画笔宽度";
this.Column_PenWidth.Name = "Column_PenWidth";
this.Column_PenWidth.ReadOnly = true;
this.Column_PenWidth.Visible = false;
//
// Column_ShowText
//
this.Column_ShowText.HeaderText = "投影文字";
this.Column_ShowText.Name = "Column_ShowText";
this.Column_ShowText.ReadOnly = true;
this.Column_ShowText.Visible = false;
//
// Column_disable
//
this.Column_disable.FillWeight = 80F;
this.Column_disable.HeaderText = "禁用";
this.Column_disable.Name = "Column_disable";
this.Column_disable.ReadOnly = true;
this.Column_disable.Visible = false;
this.Column_disable.Width = 55;
//
// Column_Notes
//
this.Column_Notes.HeaderText = "注意事项";
this.Column_Notes.Name = "Column_Notes";
this.Column_Notes.Visible = false;
//
// col_IsEdit
//
this.col_IsEdit.HeaderText = "是否已编辑";
this.col_IsEdit.Name = "col_IsEdit";
this.col_IsEdit.ReadOnly = true;
this.col_IsEdit.Visible = false;
//
// col_Polarities
//
this.col_Polarities.HeaderText = "极性";
this.col_Polarities.Name = "col_Polarities";
this.col_Polarities.Visible = false;
//
// btnClose
//
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClose.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnClose.Location = new System.Drawing.Point(467, 537);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(120, 45);
this.btnClose.TabIndex = 41;
this.btnClose.Text = "返回";
this.btnClose.UseVisualStyleBackColor = true;
this.btnClose.Click += new System.EventHandler(this.button1_Click_1);
//
// btnSave
//
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSave.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSave.Location = new System.Drawing.Point(326, 537);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(120, 45);
this.btnSave.TabIndex = 40;
this.btnSave.Text = "保存";
this.btnSave.UseVisualStyleBackColor = true;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// FrmEditMPoint
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(852, 612);
this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Name = "FrmEditMPoint";
this.Text = "点位批量操作";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBoardInfo_FormClosing);
this.Load += new System.EventHandler(this.FrmBoardInfo_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.groupDelete.ResumeLayout(false);
this.groupCopy.ResumeLayout(false);
this.groupCopy.PerformLayout();
this.groupPianYi.ResumeLayout(false);
this.groupPianYi.PerformLayout();
this.焊点列表.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvList)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.DataGridView dgvList;
private System.Windows.Forms.Button btnSave;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1;
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn2;
private System.Windows.Forms.GroupBox 焊点列表;
private System.Windows.Forms.GroupBox groupPianYi;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox txtXUpdate;
private System.Windows.Forms.TextBox txtYUpdate;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label122;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_pointNum;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_PartNum;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_Name;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_X;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_Y;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_NodeX;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_NodeY;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_positionNum;
private System.Windows.Forms.DataGridViewCheckBoxColumn Column_NeedSoldering;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_WeldTemp;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_WeldTime;
private System.Windows.Forms.DataGridViewCheckBoxColumn Column_NeedCheck;
private System.Windows.Forms.DataGridViewCheckBoxColumn Column_CheckOK;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_PointType;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_PointSizeX;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_PointSizeY;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_PenWidth;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_ShowText;
private System.Windows.Forms.DataGridViewCheckBoxColumn Column_disable;
private System.Windows.Forms.DataGridViewTextBoxColumn Column_Notes;
private System.Windows.Forms.DataGridViewTextBoxColumn col_IsEdit;
private System.Windows.Forms.DataGridViewTextBoxColumn col_Polarities;
private System.Windows.Forms.RadioButton rdbPianyi;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox txtAngle;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.GroupBox groupCopy;
private System.Windows.Forms.RadioButton rdbCopy;
private System.Windows.Forms.TextBox txtRow;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox txtRowS;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TextBox txtColS;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtCol;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.RadioButton rdbDelete;
private System.Windows.Forms.GroupBox groupDelete;
private System.Windows.Forms.Label label6;
}
}
\ No newline at end of file

using log4net;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
using TSA_V.Common;
using TSA_V.DeviceLibrary;
using TSA_V.frmBoard;
using TSA_V.LoadCSVLibrary;
using static TSA_V.Common.LogUtil;
namespace TSA_V
{
public partial class FrmEditMPoint : FrmBase
{
public BoardInfo updateBoardInfo = null;
public List<SMTPointInfo> selectPoints = new List<SMTPointInfo>();
public List<SMTPointInfo> resultPointList=new List<SMTPointInfo> ();
/// <summary>
/// 1=点位偏移旋转。2=复制,3=删除。
/// </summary>
public int EditType = 0;
public static readonly ILog LOGGER = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public FrmEditMPoint()
{
InitializeComponent();
CheckForIllegalCrossThreadCalls = false;
LanguagePro();
}
public void SetBoard(BoardInfo board, List<SMTPointInfo> selectPoints)
{
updateBoardInfo = board;
this.selectPoints = selectPoints;
LoadBoardInfo();
}
public void LoadForm()
{
}
private void LanguagePro()
{
this.dataGridViewImageColumn1.HeaderText = ResourceCulture.GetString(ResourceCulture.ItemText_Up, "上升");
this.dataGridViewImageColumn2.HeaderText = ResourceCulture.GetString(ResourceCulture.ItemText_Down, "下降");
if (dgvList.SelectedRows != null && dgvList.SelectedRows.Count > 0)
{
int rowIndex = dgvList.SelectedRows[0].Index;
string partNum = dgvList.Rows[rowIndex].Cells[this.Column_PartNum.Name].Value.ToString();
string name = dgvList.Rows[rowIndex].Cells[this.Column_Name.Name].Value.ToString();
}
else
{
}
this.Column_PartNum.HeaderText = ResourceCulture.GetString(ResourceCulture.Col_Num, "位号");
this.Column_Name.HeaderText = ResourceCulture.GetString(ResourceCulture.Col_Name, "物料编号");
this.Column_positionNum.HeaderText = ResourceCulture.GetString(ResourceCulture.Col_Position, "料盘位置");
this.Column_NeedSoldering.HeaderText = ResourceCulture.GetString(ResourceCulture.Col_NWeld, "需焊接");
this.Column_WeldTemp.HeaderText = ResourceCulture.GetString(ResourceCulture.Col_WeldTemp, "焊接温度");
this.Column_WeldTime.HeaderText = ResourceCulture.GetString(ResourceCulture.Col_WeldTime, "焊接时间");
this.Column_NeedCheck.HeaderText = ResourceCulture.GetString(ResourceCulture.Col_NCheck, "需检测");
this.Column_CheckOK.HeaderText = ResourceCulture.GetString(ResourceCulture.ItemText_Check, "校准点");
this.Column_CheckOK.Visible = false;
this.Column_disable.Visible = false;
this.Column_disable.HeaderText = ResourceCulture.GetString(ResourceCulture.ItemText_Disable, "禁用");
this.Column_Notes.HeaderText = ResourceCulture.GetString("注意事项", "注意事项");
this.Column_Notes.Width = 140;
}
private void FrmBoardInfo_Load(object sender, EventArgs e)
{
int count = dgvList.Columns.Count;
for (int i = 0; i < count; i++)
{
if (i.Equals(Column_disable.Index))
{
dgvList.Columns[i].ReadOnly = false;
}
else
{
dgvList.Columns[i].ReadOnly = true;
}
dgvList.Columns[i].Selected = false;
}
rdbChange();
}
private void LoadBoardInfo()
{
this.dgvList.Rows.Clear();
foreach (SMTPointInfo point in selectPoints)
{
if (point != null)
{
dgvList.Rows.Add(setPointInfo(null, point));
}
}
}
private DataGridViewRow setPointInfo(DataGridViewRow view, SMTPointInfo point)
{
if (view == null)
{
view = new DataGridViewRow();
view.CreateCells(dgvList);
}
view.Tag = point;
view.Cells[0].Value = point.pointNum.ToString();
view.Cells[1].Value = point.TagNo.ToString();
view.Cells[2].Value = point.PN;
view.Cells[3].Value = point.PositionX.ToString();
view.Cells[4].Value = point.PositionY.ToString();
view.Cells[5].Value = point.NodePositionX.ToString();
view.Cells[6].Value = point.NodePositionY.ToString();
view.Cells[7].Value = point.PositionNum.ToString();
view.Cells[8].Value = point.NeedSoldering;
view.Cells[9].Value = point.WeldTemp;
view.Cells[10].Value = point.WeldTime;
view.Cells[11].Value = point.NeedCheck;
view.Cells[12].Value = point.CheckOK;
view.Cells[Column_PointType.Index].Value = point.PointType;
view.Cells[Column_PointSizeX.Index].Value = point.PointSizeX;
view.Cells[Column_PointSizeY.Index].Value = point.PointSizeY;
view.Cells[Column_PenWidth.Index].Value = point.PenWidth;
view.Cells[Column_ShowText.Index].Value = point.ShowText;
view.Cells[Column_disable.Index].Value = point.Disable;
view.Cells[col_IsEdit.Index].Value=point.IsEdit;
view.Cells[col_Polarities.Index].Value = point.PolaritiesType;
if (updateBoardInfo != null)
{
ComponetInfo com = CSVBomManager.GetCom(updateBoardInfo.bomName, point);
if (com != null)
{
view.Cells[Column_Notes.Index].Value = com.Notes;
view.Cells[7].Value = com.PositionNum.ToString();
}
}
view.DefaultCellStyle.ForeColor = Color.Black;
view.DefaultCellStyle.BackColor = Color.White;
if (point.Disable)
{
view.DefaultCellStyle.ForeColor = Color.Gray;
view.DefaultCellStyle.BackColor = Color.LightGray;
}
if (point.CheckOK)
{
view.DefaultCellStyle.ForeColor = Color.Red;
}
return view;
}
private bool isRun = false;
private bool IsProcess = false;
private void timer_Elapsed(object sender, EventArgs e)
{
if (IsProcess) { return; }
IsProcess = true;
IsProcess = false;
}
private void FrmBoardInfo_FormClosing(object sender, FormClosingEventArgs e)
{
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex != -1 && e.ColumnIndex >= 0)
{
}
}
private void btnSave_Click(object sender, EventArgs e)
{
resultPointList = new List<SMTPointInfo>();
EditType = 0;
string msg = "";
string showMsg = "";
if (rdbPianyi.Checked)
{
EditType = 1;
double xUpdate = FormUtil.getDoubleValue(txtXUpdate);
double yUpdate = FormUtil.getDoubleValue(txtYUpdate);
int angle = FormUtil.GetIntValue(txtAngle);
if (xUpdate.Equals(0) && yUpdate.Equals(0) && angle.Equals(0))
{
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.PWUpdateValue, "请输入修正值或角度!"));
txtXUpdate.Focus();
return;
}
if (xUpdate > 0 || yUpdate > 0)
{
showMsg = ResourceCulture.GetString(ResourceCulture.PWSureUPdateXY, "程序【{0}】的组装位置将修正,偏移量X[{1}],Y[{2}],是否确定修正", updateBoardInfo.boardName, xUpdate, yUpdate);
}
if (angle != 0)
{
showMsg += "\r\n" + ResourceCulture.GetString(ResourceCulture.PWSureXuanzhuan, "以左下角为基准顺时针旋转{0}度?", angle);
}
DialogResult result = MessageBox.Show(showMsg, ResourceCulture.GetString(ResourceCulture.Sure, "确认"), MessageBoxButtons.YesNo);
if (!result.Equals(DialogResult.Yes))
{
return;
}
msg = $"坐标偏移/旋转: X={xUpdate},Y={yUpdate},angle={angle},列表: ";
foreach (SMTPointInfo point in selectPoints)
{
double oldX = point.PositionX;
double oldY = point.PositionY;
if (xUpdate > 0 || yUpdate > 0)
{
point.PositionX += xUpdate;
point.PositionY += yUpdate;
}
if (angle != 0)
{
var pointR = RotatePoint(point.PositionX, point.PositionY, 0, 0, angle);
point.PositionX = pointR.Item1;
point.PositionY = pointR.Item2;
}
resultPointList.Add(point);
msg += "\r\n" + point.TagNo + "_" + point.PN + $",原坐标:{oldX},{oldY}, 新坐标:{point.PositionX},{point.PositionY}";
}
selectPoints = new List<SMTPointInfo>(resultPointList);
LogUtil.info(msg);
this.DialogResult = DialogResult.OK;
this.Close();
}
else if (rdbCopy.Checked)
{
EditType = 2;
int row = FormUtil.GetIntValue(txtRow);
int col = FormUtil.GetIntValue(txtCol);
int rowValue = FormUtil.GetIntValue(txtRowS);
int colValue = FormUtil.GetIntValue(txtColS);
showMsg = ResourceCulture.GetString(ResourceCulture.PWSureCopyPoint, "确定复制?目标为{0}行,{1}列,X间距={2}, Y间距={3}", row,col,rowValue,colValue);
DialogResult result = MessageBox.Show($"确定复制?目标为{row}行,{col}列,X间距={rowValue}, Y间距={colValue}", ResourceCulture.GetString(ResourceCulture.Sure, "确认"), MessageBoxButtons.YesNo);
if (!result.Equals(DialogResult.Yes))
{
return;
}
//复制
List<SMTPointInfo> oldPoints = new List<SMTPointInfo>();
resultPointList = new List<SMTPointInfo>();
msg = $"点位复制: 目标为{row}行,{col}列,X间距={rowValue}, Y间距={colValue},列表: ";
foreach (SMTPointInfo point in selectPoints)
{
msg += "\r\n" + point.TagNo + "_" + point.PN + $",更改组={1}";
point.Group = 1;
oldPoints.Add(point);
}
int nextNum = updateBoardInfo.GetNextPNum();
selectPoints = new List<SMTPointInfo>(oldPoints);
for (int currRow = 1; currRow <= row; currRow++)
{
for (int currCol = 1; currCol <= col; currCol++)
{
int index = (currRow - 1) * col + currCol;
if (index == 1)
{
continue;
}
foreach (SMTPointInfo point in oldPoints)
{
SMTPointInfo newPoint = new SMTPointInfo(point);
newPoint.pointNum = nextNum;
newPoint.PositionX = newPoint.PositionX + (currCol - 1) * colValue;
newPoint.PositionY = newPoint.PositionY + rowValue * (currRow - 1);
newPoint.Group = index;
newPoint.TagNo = point.TagNo + "-" + index;
newPoint.PointSizeX = point.PointSizeX;
msg += "\r\n" + point.pointName + "_" + point.PN + $",更改组={index}";
resultPointList.Add(newPoint);
nextNum++;
}
}
}
LogUtil.info(msg);
this.DialogResult = DialogResult.OK;
this.Close();
}
else if (rdbDelete.Checked)
{
EditType = 3;
DialogResult result = MessageBox.Show($"确定删除?", ResourceCulture.GetString(ResourceCulture.Sure, "确认"), MessageBoxButtons.YesNo);
if (!result.Equals(DialogResult.Yes))
{
msg = $"点位删除: 列表: ";
foreach (SMTPointInfo point in selectPoints)
{
msg += "\r\n" + point.TagNo + "_" + point.PN + $" ";
resultPointList.Add(point);
}
LogUtil.info(msg);
this.DialogResult = DialogResult.OK;
this.Close();
}
}
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.SaveOk, "保存成功!"));
Close();
}
(double, double) RotatePoint(double x, double y,double x2,double y2, double angleInDegrees)
{
double angleInRadians = angleInDegrees * (Math.PI / 180.0);
double cosTheta = Math.Cos(angleInRadians);
double sinTheta = Math.Sin(angleInRadians);
double newX = cosTheta * (x - x2) - sinTheta * (y - y2) + x2;
double newY = sinTheta * (x - x2) + cosTheta * (y - y2) + y2;
return (Math.Round(newX,2), Math.Round(newY,2));
}
//private (double,double) xuanzhuan(double x, double y, int angle)
//{
// int cA = angle;
// if (angle <= 0)
// {
// cA = 360 - angle;
// }
// double orgX = x;
// double orgY = updateBoardInfo.boardLength - y;
// double newX = orgX * Math.Cos(-cA) + orgY * Math.Sin(-cA);
// double newY = (updateBoardInfo.boardLength - orgX * Math.Sin(-cA) + orgY * Math.Cos(-cA));
// LogUtil.info($"X={x},Y={y}, 偏移={angle},结果:X={newX},Y={newY}");
// // 将角度转换为弧度
// //double angleInRadians = angle * Math.PI / 180;
// //// 计算旋转后的新坐标
// ////double newX = x * Math.Cos(angleInRadians) - y * Math.Sin(angleInRadians);
// ////double newY = x * Math.Sin(angleInRadians) + y * Math.Cos(angleInRadians);
// //double newX = x * Math.Cos(angle) - y * Math.Sin(angle);
// //double newY = x * Math.Sin(angle) + y * Math.Cos(angle);
// return (newX,newY);
//}
private void button1_Click(object sender, EventArgs e)
{
Close();
}
private void dgvList_DragEnter(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.Move;
}
private void dgvList_CellMouseMove(object sender, DataGridViewCellMouseEventArgs e)
{
if ((e.Clicks < 2) && (e.Button == MouseButtons.Left))
{
if ((e.ColumnIndex == -1) && (e.RowIndex > -1))
this.dgvList.DoDragDrop(dgvList.Rows[e.RowIndex], DragDropEffects.Move);
}
}
int selectionIdx = -1;
private void dgvList_DragDrop(object sender, DragEventArgs e)
{
try
{
int idx = GetRowFromPoint(e.X, e.Y);
if (idx < 0)
{
return;
}
if (e.Data.GetDataPresent(typeof(DataGridViewRow)))
{
DataGridViewRow row = (DataGridViewRow)e.Data.GetData(typeof(DataGridViewRow));
dgvList.Rows.Remove(row);
selectionIdx = idx;
if (idx >= dgvList.Rows.Count - 1)
{
dgvList.Rows.Add(row);
}
else
{
dgvList.Rows.Insert(idx, row);
}
}
}
catch (Exception ex)
{
LogUtil.error("拖拽出错:" + ex.ToString());
}
}
private int GetRowFromPoint(int x, int y)
{
y = y + VerticalScrollIndex;
for (int i = 0; i < dgvList.RowCount; i++)
{
Rectangle rec = dgvList.GetRowDisplayRectangle(i, false);
if (dgvList.RectangleToScreen(rec).Contains(x, y))
return i;
}
return -1;
}
int VerticalScrollIndex = 0, HorizontalOffset = 0;
private void rdbPianyi_CheckedChanged(object sender, EventArgs e)
{
rdbChange();
}
private void rdbXuanzhuan_CheckedChanged(object sender, EventArgs e)
{
rdbChange();
}
private void rdbCopy_CheckedChanged(object sender, EventArgs e)
{
rdbChange();
}
private void rdbChange()
{
groupCopy.Enabled = true;
//groupXuanzhuan.Enabled = rdbXuanzhuan.Checked;
groupPianYi.Enabled = true;
groupDelete.Enabled = true;
txtXUpdate.Enabled= rdbPianyi.Checked;
txtYUpdate.Enabled = rdbPianyi.Checked;
txtAngle.Enabled = rdbPianyi.Checked;
txtCol.Enabled = rdbCopy.Checked;
txtRow.Enabled = rdbCopy.Checked;
txtColS.Enabled = rdbCopy.Checked;
txtRowS.Enabled = rdbCopy.Checked;
}
private void button1_Click_1(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
rdbChange();
}
private void dgvList_Scroll(object sender, ScrollEventArgs e)
{
try
{
if (e.ScrollOrientation == ScrollOrientation.VerticalScroll)
{
VerticalScrollIndex = e.NewValue;
}
else if (e.ScrollOrientation == ScrollOrientation.HorizontalScroll)
{
HorizontalOffset = e.NewValue;
}
}
catch { }
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="dataGridViewImageColumn1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAANRJREFUSEvtk8ENhSAMQBnAgHplD/c/w8UN1Dkg4adESJWKlsM/8ZIm0FIekCDC
n+iiZtgia20MLizRvu9BCBEDxhw+i7CkRfZJdBxHIUkBtS+8irZty5tqrckxrHmjKsLPNc9zzKU5ME1T
nr8946MIS5RSZ/YqAqCWcjUZKcISODUm5THjOOb8k6wQGWNyE75JItXuSClzDfa4U3TAZ4TF0EjxJAKG
YYg16kOTHeu6Bu/9ObtSEznnYi8F3VGhJqrRRV2UYXcsyxKDC/9ojXRRIyH8ACKfopRlVag2AAAAAElF
TkSuQmCC
</value>
</data>
<data name="dataGridViewImageColumn2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAAONJREFUSEvtk00OhCAMRlkb49/We3j/tS70BuI1TAwzH8FOVQTrYla8pIkttg9I
UOZPJNFrxKKu62xIEYuUUjakJFESEd6OcRzNuq4uOxISbdtmpmly2ZFLR9/3dlCWZa5yJCQqy9KuYcaZ
S8cwDDQsz3NX/XEnqqqK1jDjjHdrWmtqwi45e51T1zXV0evDfwdfuKwoCle9ivhJ7iTgVgS4DLsGew6a
pqE8JAFBEZjnmYa1bev9xj8xoiKwLAsNPQfWnvBIBPg17hG7Ls5jEeAyiQSIRABvxPdOYohFb0milxjz
AeLDoohrNFdzAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="Column_pointNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_PartNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_X.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_Y.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_NodeX.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_NodeY.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_NeedSoldering.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_WeldTemp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_WeldTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_NeedCheck.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_CheckOK.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_PointType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_PointSizeX.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_PointSizeY.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_PenWidth.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_ShowText.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_disable.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column_Notes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_IsEdit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="col_Polarities.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>82</value>
</metadata>
</root>
\ No newline at end of file
......@@ -122,7 +122,7 @@ namespace TSA_V
double xXishu = (BPoint.NodePositionX - APoint.NodePositionX) / (BPoint.PositionX - APoint.PositionX);
double yXishu = (BPoint.NodePositionY - APoint.NodePositionY) / (BPoint.PositionY - APoint.PositionY);
//计算点大小
if (smtPoint.imgP.uTime > smtPoint.pUTime)
if (smtPoint.imgP?.uTime > smtPoint.pUTime)
{
smtPoint.PointSizeX = (int)((BPoint.NodePositionX - APoint.NodePositionX) * smtPoint.imgP.SizeX / (BPoint.PositionX - APoint.PositionX));
smtPoint.PointSizeY = (int)((BPoint.NodePositionY - APoint.NodePositionY) * smtPoint.imgP.SizeY / (BPoint.PositionY - APoint.PositionY));
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!