private void ShowLog() { if (frmLog == null) { frmLog = new FormLog(); } UpdateLog(); if (!frmLog.Visible) { frmLog.Show(this); } }