private void itemLog_Click(object sender, EventArgs e) { if (frmLog.Instance != null) { frmLog.Instance.Show(); } else { frmLog fLog = new frmLog(); fLog.Owner = this; fLog.Show(this); } }
protected override void OnClosed(EventArgs e) { base.OnClosed(e); instance = null; }
protected override void OnShown(EventArgs e) { base.OnShown(e); instance = this; }