Fixed: title not updating

This commit is contained in:
Ray 2020-09-05 02:21:15 +01:00
parent cb39305541
commit 69cd0f6376

View File

@ -508,6 +508,20 @@ namespace RyzStudio.Windows.Forms
} }
} }
public static void SetText(ThemedForms.TextBox control, string text)
{
if (control.InvokeRequired)
{
control.Invoke(new MethodInvoker(() => {
control.InnerTextBox.Text = text;
}));
}
else
{
control.InnerTextBox.Text = text;
}
}
public static void SetTopMost(Form control, bool value) public static void SetTopMost(Form control, bool value)
{ {
if (control.InvokeRequired) if (control.InvokeRequired)