public static void CloseAviso() { if (formOverlay != null) { formOverlay.Hide(); try { formOverlay.Close(); } catch (Exception) { } formOverlay.Dispose(); formOverlay = null; } if (formAviso != null) { formAviso.Hide(); try { formAviso.Close(); } catch (Exception) { } formAviso.Dispose(); formAviso = null; } }
private void btnPreVisualizarAvancado_Click(object sender, EventArgs e) { CarregaArrayObjsParaValidacao(); CustomMessageBox(title1, false); erros = BLLObject.RenomeiaAvancado(ObjsParaValidacao, txtExtensao.Text, chkSubPastas.Checked, true); if (SeTemErrosMostra()) { return; } CarregaListsNome(); formAviso.Hide(); }