Files
ENIG/Cs_HMI/Project/StateMachine/DisplayTextHandler.cs
2025-01-07 16:08:02 +09:00

30 lines
710 B
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Windows.Forms;
namespace Project
{
public partial class fMain
{
delegate void UpdateControlTextHandler(Control ctl, string value);
void UpdateControlText(Control ctl, string value)
{
if (ctl.InvokeRequired)
{
ctl.BeginInvoke(new UpdateControlTextHandler(UpdateControlText), new object[] { ctl, value });
}
else
{
ctl.Text = value;
}
}
}
}