public void HideAndNull() { if(ErrorWindowBox != null) { ErrorWindowBox.error_window.Hide(); ErrorWindowBox = null; } }