public static void Hide() { _syncContext.Post(delegate(object state) { LogDisplayForm.HideForm(); }, null); }
public static void Show() { _syncContext.Post(delegate(object state) { LogDisplayForm.ShowForm(); }, null); }
private void LogDisplayForm_FormClosing(object sender, FormClosingEventArgs e) { _form.updateTimer.Enabled = false; _form = null; LogDisplay.IsFormVisible = false; try { SetFocus(ExcelDnaUtil.WindowHandle); } catch { } // Probably not in Excel !? }
internal static void ShowForm() { if (_form == null) { _form = new LogDisplayForm(); } if (_form.Visible == false) { _form.Show(null); // SetFocus(ExcelDnaUtil.WindowHandle); } }
public static void Show() { lock (SyncRoot) { if (!IsFormVisible) { _syncContext.Post(delegate(object state) { LogDisplayForm.ShowForm(); }, null); IsFormVisible = true; } } }
static void logDisplayForm_FormClosed(object sender, FormClosedEventArgs e) { logDisplayForm = null; }