private void dlgStatusList_Closing(object sender, System.ComponentModel.CancelEventArgs e) { dlgStatusList = null; }
private void CreateOrActivateStatus() { if (dlgStatusList != null) { dlgStatusList.WindowState = FormWindowState.Normal; dlgStatusList.Activate(); return; } dlgStatusList = new StatusMessages(); dlgStatusList.Closing += dlgStatusList_Closing; dlgStatusList.Show(); foreach (string msg in messages) dlgStatusList.AddMessage(msg); }