void HideThisForm() { if (this.InvokeRequired) { var d = new FormCallback(HideThisForm); this.Invoke(d); } else { this.Hide(); } }
private void SetFormTitle() { if (InvokeRequired) { FormCallback call = new FormCallback(SetFormTitle); Invoke(call); } else { gbSetFormTitleInProgress = true; string sTitle = gsTitle; if (gbPutMessageToWindowsTitle && gsProgressText != null) { sTitle += " - " + gsProgressText; } Text = sTitle; gbSetFormTitleInProgress = false; } }
public SayingsShowForm(FormCallback formCallback, SayingsModel sayings) { _callback = formCallback; _sayings = sayings; InitializeComponent(); }
private void SetFormTitle() { if (InvokeRequired) { FormCallback call = new FormCallback(SetFormTitle); Invoke(call); } else { gbSetFormTitleInProgress = true; string sTitle = gsTitle; if (gbPutMessageToWindowsTitle && gsProgressText != null) sTitle += " - " + gsProgressText; Text = sTitle; gbSetFormTitleInProgress = false; } }
public SayingsEditForm(FormCallback formCallback) { _formCallback = formCallback; InitializeComponent(); }