This commit is contained in:
chi
2025-06-30 13:48:19 +09:00
parent 02e71d7446
commit 00dd50192b
29 changed files with 2397 additions and 1136 deletions

View File

@@ -338,7 +338,7 @@ namespace AGVEmulator
private void AgvViewer1_TagTouched(object sender, UC.AgvViewer.TagArgs e)
{
logAGV.Add($"tag touch:{e.Data}");
numericUpDown1.Value = decimal.Parse(e.Data);
numericUpDown1.Text = e.Data;// decimal.Parse(e.Data);
button18.PerformClick();
}
@@ -552,7 +552,12 @@ namespace AGVEmulator
private void button18_Click(object sender, EventArgs e)
{
AGV.SendTag(numericUpDown1.Value.ToString());
if(int.TryParse(numericUpDown1.Text, out int tagno))
{
AGV.SendTag(tagno.ToString());
numericUpDown1.SelectAll();
numericUpDown1.Focus();
}
}
private void agvViewer1_MouseDown(object sender, MouseEventArgs e)