private ModuloFisioterapeutaView GetDialog() { if (view == null) { //create the view if the view does not exist view = new ModuloFisioterapeutaView(); view.Closed += new EventHandler(view_Closed); } return(view); }
void view_Closed(object sender, EventArgs e) { view = null; }