public void ShowFormLog() { lock (formLogLocker) { if (logForm == null) { var title = coreInfo.GetSummary(); logForm = new Views.WinForms.FormSingleServerLog(title, qLogger); logForm.FormClosed += (s, a) => logForm = null; logForm.Show(); } logForm.Activate(); } }
public void ShowFormLog() { lock (formLogLocker) { if (logForm == null) { var title = coreInfo.GetSummary(); VgcApis.Misc.UI.Invoke(() => { logForm = Views.WinForms.FormSingleServerLog.CreateLogForm(title, qLogger); logForm.FormClosed += (s, a) => logForm = null; logForm.Show(); }); } VgcApis.Misc.UI.Invoke(() => logForm.Activate()); } }